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 = "[email protected]";$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 "[email protected]", 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 Link to comment https://forums.phpfreaks.com/topic/6084-problems-with-flash-form-by-php/ 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 = "[email protected]";$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 https://forums.phpfreaks.com/topic/6084-problems-with-flash-form-by-php/#findComment-21900 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.