Looks fine to me - have you tried it? Don’t forget a semicolon after $subject = “Referal Program” in your PHP script. You’d get a parse error otherwise. And, no, nothing has to be in your HTML with the flash movie to have it work.
You may also want to add this to the beginning of your php file:
$name=$_POST["name"];
$email=$_POST["email"];
$name1=$_Post["name1"];
//etc..etc..for all your variables comming in
First off, congrats on your new status - you’ll make a fine member
Secondly, the only way you are going to know who fills out your form by email address is for them to actually fill out a box with their email address. It’s not possible for anything to read someone’s email address from a browser. Therefore, it needs to be treated like any other variable coming in to the PHP script from Flash…and I was talking about both of them because they would be empty variables when you ran the script.
For your last thing, I think I mentioned it before, but I don’t know if that added line would do anything in the mail command. I have always just used:
mail($to, $subject, $msg, $header);
However, I think we may have cleared that up seeing that you aren’t going to know who it’s from automatically!!
If you want to start PHP, cool, it’s not hard, very much like Actionscript…but you’ll get lots of errors for stupid typos & missing semicolons and have to be very carefull with variable names, coz they are case-sensitive in PHP (myvar != Myvar) !!
you are most definately right about typos and such – on the first lines of each (name and name1) they were both supposed to be name1 (i just forgot to add it in)
and you answered another question of mine. case sensitivity. thanks
but i redid it and used name and candidate (it is a referal form they are filling out so it has to be 2 different names listed.)