Jump to content

Archived

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

cristina

problems with flash form by php

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

Share this post


Link to post
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 :)

Share this post


Link to post
Share on other sites

×

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.