View Full Version : form inputs emailed to a specific address
lamchops_0928
01-06-2004, 09:48 PM
if i wanted to create a form on flash, and have viewers input their name, email, phone numbers etc, and then submit that info... how would i do it? Could i email it to my email address? how is information like that submitted to the webmaster? any help is appreciated...
thanks..
~mike
Give your input fields instance names such as the foloowing:
name_txt, email_txt, message_txt
then on your submit button you could assign variables to be inserted into your email like such:
mySubmit.onRelease=function(){
myEmail="Laugh@taffsAddress.com"
userName=name_txt.text;
userEmail=email_txt.text;
userMessage=message_txt.text;
getURL("mailTo:"+myEmail+"?subject=message from "+userName+" with the Email address "+userEmail+" body="+userMessage);
}
This code will open up the users Email programme with the data already inserted.
If you just want it to be sent automatically then you will need some sort of Server Sided Script to implement it, such as mail() with PHP, but the theory is the same.
Taff
Powered by vBulletin™ Version 4.1.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.