game4uin99 Posted May 7, 2007 Share Posted May 7, 2007 So, I totally have no clue what I am doing! Here's what is in the file. I would like to of course make it work as well as have a message stating the form contact has been sent. (webpage: www.slanginrocks.com) Any help would be greatly appreciated. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title></title> </head> <body onload="document.form.submit();"> <?php $com=$_POST['c']; $fname=$_POST['firstName']; $lname=$_POST['lastname']; $email=$_POST['email']; $messa=$_POST['message']; $msg='First name: '.$fname."\n".'Last name: '.$lname."\n".'message: '.$com; mail('[email protected]','Contact Us Form',$message,$email); ?> <form name="form" action="http://slanginrocks.com" method="get"> </form> </body> </html> Link to comment https://forums.phpfreaks.com/topic/50302-flash-template-contact-us-page/ Share on other sites More sharing options...
pocobueno1388 Posted May 7, 2007 Share Posted May 7, 2007 I don't understand your question, are you having trouble getting the mail function to work? Link to comment https://forums.phpfreaks.com/topic/50302-flash-template-contact-us-page/#findComment-246920 Share on other sites More sharing options...
game4uin99 Posted May 7, 2007 Author Share Posted May 7, 2007 Yes, I am sorry. I get an email with no content. Link to comment https://forums.phpfreaks.com/topic/50302-flash-template-contact-us-page/#findComment-246922 Share on other sites More sharing options...
pocobueno1388 Posted May 7, 2007 Share Posted May 7, 2007 It is because you didn't finish spelling message: $messa=$_POST['message']; Link to comment https://forums.phpfreaks.com/topic/50302-flash-template-contact-us-page/#findComment-246925 Share on other sites More sharing options...
john010117 Posted May 7, 2007 Share Posted May 7, 2007 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title></title> </head> <body onload="document.form.submit();"> <?php $com=$_POST['c']; $fname=$_POST['firstName']; $lname=$_POST['lastname']; $email=$_POST['email']; $message=$_POST['message']; $msg='First name: '.$fname."\n".'Last name: '.$lname."\n".'message: '.$com; mail('[email protected]','Contact Us Form',$message,$email); ?> <form name="form" action="http://slanginrocks.com" method="get"> </form> </body> </html> Link to comment https://forums.phpfreaks.com/topic/50302-flash-template-contact-us-page/#findComment-246933 Share on other sites More sharing options...
game4uin99 Posted May 7, 2007 Author Share Posted May 7, 2007 Still not working Link to comment https://forums.phpfreaks.com/topic/50302-flash-template-contact-us-page/#findComment-247007 Share on other sites More sharing options...
pocobueno1388 Posted May 7, 2007 Share Posted May 7, 2007 What is this line for? $msg='First name: '.$fname."\n".'Last name: '.$lname."\n".'message: '.$com; Maybe that is what you are wanting as the body? So in your mail function code replace $message with $msg. Link to comment https://forums.phpfreaks.com/topic/50302-flash-template-contact-us-page/#findComment-247339 Share on other sites More sharing options...
game4uin99 Posted May 8, 2007 Author Share Posted May 8, 2007 Tried that with no luck. It is odd because when I click send on the webpage nothing happens. I dont get an email. If I run the php from the server I get a blank email. Do these issues have anything to do with the flash? Link to comment https://forums.phpfreaks.com/topic/50302-flash-template-contact-us-page/#findComment-247740 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.