Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP and Flash problem

Status
Not open for further replies.

Ivan1

Programmer
Jun 18, 2001
113
US
Hi.
I'm fairly new to PHP, and I'm trying to set up a basic mailform in Flash to interact with PHP. So here is what I have:
Two Input fields that have variables "comments" and "email" assigned to them.
"Reset" and "Submit" buttons with following actionscript:
RESET
on (release) {
email = "";
comments = "";
}

SUBMIT
on (release) {
loadVariablesNum ("mailform.php", 0, "GET");
}

and then I have a mailform.php file in the same directory as my SWF file with the form

Mailform PHP is as follows
<HTML>
<HEAD>
<TITLE>Form Mailer</TITLE>
<BODY>
<?php


mail (&quot;strangepholk@hotmail.com, &quot;Flash Form Response&quot;, &quot;

Flash Form Response:

E-mail: $email

User comments:

$comments

Sent From : $REMOTE_ADDR


&quot;);


?>


</body>
</html>
And the e-mail does not come to the specified address.
Any suggestions are much appreciated.
Regards,
Ivan
URL for the flash form
 
hi

Your missing a quotation mark &quot; after your email address.

Nonetheless, you don't need that HTML in there, where is everyone getting this script from?

Also, see thread250-201926 and faq250-486

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top