Jump to content

email form help almost got it..


mgmediaworks

Recommended Posts

what am I missing..?

 

i get the email ..but.. none of the fields..in my email..

 

i have a flash site.. have three fields.. name, email, and message..

but get nothing....

and how do I get it to come back to my www.queyano.com site  once the form is submitted..

 

<?

 

  $to = "[email protected]";

  $msg = "Name of sender:            $name\n\n";

  $msg .= "Sender's E-Mail Adress:    $email\n\n";

  $msg .= "Message from Sender:      $message\n\n";

 

  mail($to, $msg, "From: yourwebsite Form\nReply-To: $email\n");

 

?>

 

 

 

oh and  since the form is called process...in my flash button parameter I have this..

 

 

on (release) {

getURL("http://www.queyano.com/process.php", "", "POST");

}

 

 

if this is to confusing.. who or where can I go to pay someone to edit my flash fields

and make this little email form..

thanx

Link to comment
https://forums.phpfreaks.com/topic/61324-email-form-help-almost-got-it/
Share on other sites

can i direct you to a flash php email form tutorial?

you will most likely find your answer there.

this is where i learnt how to do it, and refernce to when i need to do it again:

http://www.kirupa.com/developer/actionscript/flash_php_email.htm

Bit of a stab in the dark, but have you got the variables from the $_POST array?

 

<?php
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'

  $to = "[email protected]";
  $msg = "Name of sender:             $name\n\n";
  $msg .= "Sender's E-Mail Adress:    $email\n\n";
  $msg .= "Message from Sender:       $message\n\n";

 mail($to, $msg, "From: yourwebsite Form\nReply-To: $email\n");

?>

 

Also, to redirect:

header("location:http://www.queyano.com");

from the look of what mgmediaworks posted, the actionscript of his flash movie is wrong

 

you need to tell the flash movie where to send the variables by using the form.loadVariables

tell it what file to send them to and by what method

like this:

form.loadVariables("email.php", "POST");

 

are you wanting it to show a html page?

or a frame on the flash movie?

Bit of a stab in the dark, but have you got the variables from the $_POST array?

 

<?php
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'

  $to = "[email protected]";
  $msg = "Name of sender:             $name\n\n";
  $msg .= "Sender's E-Mail Adress:    $email\n\n";
  $msg .= "Message from Sender:       $message\n\n";

 mail($to, $msg, "From: yourwebsite Form\nReply-To: $email\n");

?>

 

Also, to redirect:

header("location:http://www.queyano.com");

 

Im not sure if that code works but on the 4th line you missed a ']

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.