Jump to content

problems with flash form by php


cristina

Recommended Posts

Hello:

This is my first time here, I hope you can help me.
I've nade a form in flash that send me the data by a php file. In the php I wrote:

<?PHP

$to = "info@virtualflyer.net";
$subject = "Contacto desde el formulario flash";
$message = "Nombre: " . $theName;
$message .= "\nEmail: " . $theEmail;
$message .= "\nEmpresa: " . $theCompany;
$message .= "\nTelefono: " . $thePhone;
$message .= "\n\nMensaje: " . $theMessage;
$headers = "From: $theEmail";
$headers .= "\nReplay-to: $theEmail";

$sentOk = mail($to,$subject,$message,$headers);

echo "sentOk=" . $sentOk;

?>

I have three problems:

1- I receive the emails from the form but without the data, I mean, I can't see the variables $theName,$theEmail, etc...but I see "Contacto desde el formulario flash"

2- the sender appears always the same one "web@virtualflyer.net", that account I have not create it, and as I wrote in the script, the sender is suppossed to be what somebody writes in variable $theEmail

3- I work on a Mac, and my browser is safari, the mails I send by safari arrives to destination, but mails from explorer doesn't...do you think it has something to be with the php?.

Please, help me about this, it's important form my work...

Thank you,

Cristina
Link to comment
Share on other sites

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]<?PHP

$to = "info@virtualflyer.net";
$subject = "Contacto desde el formulario flash";
$message = "Nombre: " . $_POST['theName'];
$message .= "\nEmail: " . $_POST['theEmail'];
$message .= "\nEmpresa: " . $_POST['theCompany'];
$message .= "\nTelefono: " . $_POST['thePhone'];
$message .= "\n\nMensaje: " . $_POST['theMessage'];
$headers = "From: $_POST[theEmail]";
$headers .= "\nReplay-to: $_POST[theEmail]";

$sentOk = mail($to,$subject,$message,$headers);

echo "sentOk=" . $sentOk;

?>[/quote]

The browser your ussing shouldn't make a diffrence because PHP is serverside not clientside..

Try that you need to use $_POST[''] to grab the variables :)
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.