Jump to content


Photo

problems with flash form by php


  • Please log in to reply
1 reply to this topic

#1 cristina

cristina
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 29 March 2006 - 10:25 AM

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


#2 shocker-z

shocker-z
  • Members
  • PipPipPip
  • Advanced Member
  • 864 posts
  • LocationNottingham

Posted 29 March 2006 - 10:59 AM

[!--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 :)
www: www.ukchat.ws | irc: irc.ukchat.ws chan: #blufudge




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users