I'm new to this flash and .php thing and I don't know whether this goes into the flash section or the php section. Anways I'm trying to get a flash contact form to work. Here is the AS for the movie clip
<?PHP
$to = "myemail";
$subject = "Hello, I have a question or comment";
$message = "Name: " . $_POST['tf_1'];
$message .= "\nEmail: " . $_POST['tf_3'];
$message .= "\nState: " . $_POST['tf_4'];
$message .= "\n\nMessage: " . $_POST['tf_2'];
ini_set('SMTP', 'relay-hosting.secureserver.net'); //read u need this here for GoDaddy
mail($to,$subject,$message,$headers);
?>
The host for the website is GoDaddy and they have their own gdform.php file but I have no idea how to incorporate the AS into the .php file. Here is the gdform.php they give you
it's "_root.movieclipname.textinputname.text." Reason he said this was that my input text boxes each sit on a movie clip, meaning there's 4 movie clips.
Also on that website, Can I just rename the instance fields instead of selecting them all to make one movie clip?
Lets focus on getting the PHP to work first, as it appears not to be working. Have you checked with your host on the proper setup? Do you really need that set_int thing? Or is something else missing?
__________________
jeremy - gnomeontherun Educated questions often get educated answers, and simple questions often get simple answers.
well the host is GoDaddy. I read on another forum where a user had GoDaddy and GoDaddy sent them an email saying to put that ini_set into the .php file. I pretty sure the .php file works (mine, not the GoDaddy one) because when I open the .php file, I get an email with the subject and such. It just doesn't show what user typed.
First, check that you have variable names (Not Instances!) and these should match your PHP like theName and theEmail. Then you can use the code from the other person, or just this should also work since you will have the variables set and won't need to grab the text field values.
Code:
on (release) {
loadVariablesNum ("contact.php", 0, "POST");
}
}
__________________
jeremy - gnomeontherun Educated questions often get educated answers, and simple questions often get simple answers.
it still sending the email without what the user typed. I check the variable names and they are correct. Also checked the names on the .php file and they are correct.
basically the input boxes are sitting on top of the movie clips. Also does it matter the the movie clips(the ones under the input boxes) are sitting on a movie clip?