View Full Version : form inputs emailed to a specific address
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...
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:
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.
Powered by vBulletin™ Version 4.1.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.