cristina Posted March 29, 2006 Share Posted March 29, 2006 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 $theEmail3- 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 Quote Link to comment Share on other sites More sharing options...
shocker-z Posted March 29, 2006 Share Posted March 29, 2006 [!--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 :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.