jessmolchan Posted February 15, 2011 Share Posted February 15, 2011 im trying to add a flash contact form to my site. im using adobe flash cs5…i just cant seem to make it work. i would like to use php.any help would be greatly appreciated... Link to comment Share on other sites More sharing options...
thescientist Posted February 15, 2011 Share Posted February 15, 2011 Well, the form itself will have to be written in HTML. http://www.w3schools.com/html/html_forms.aspThe actual form processing and the contact part, will be done in PHP.http://www.w3schools.com/php/php_mail.asp Link to comment Share on other sites More sharing options...
jessmolchan Posted February 16, 2011 Author Share Posted February 16, 2011 Well, the form itself will have to be written in HTML. http://www.w3schools.com/html/html_forms.aspThe actual form processing and the contact part, will be done in PHP.http://www.w3schools.com/php/php_mail.asp But I can't put html in a flash document….can I?? Plus, I already have a form with text fields laid out, I just need to be able to take the information that is entered and send it to an email address…Thank you! Link to comment Share on other sites More sharing options...
thescientist Posted February 16, 2011 Share Posted February 16, 2011 sorry, I was under the impression you wanted to use PHP instead of Flash.I'm not too well versed with AS/Flash at all, but a quick google search turned up some promising results.http://www.google.com/#sclient=psy&hl=...895b6108693d27eIt appears you need to use a method called LoadVars, which will accept the php script to send the form content to and the method (POST or GET). It similar in structure to how the <form> tag is written in HTML (i.e. the action and method attributes).From there, you can process the contact information in the PHP script by check the POST or GET array, and then using the mail function to send the email. Here's one link outlining the process....http://www.actionscript.org/forums/showthread.php3?p=820701Hope that helps. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.