transecore Posted August 8, 2008 Share Posted August 8, 2008 Hey until recently my flash to PHP form was working great, received the email nicely, until my webhost upgraded there php to php5 i think. Now it gets received as the shit below: DOWNLOAD PHP FILE HERE: http://www.transecore.com/php/mailform.zip Full Name: <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"verdana\" SIZE=\"11\" COLOR=\"#CCCCCC\" LETTERSPACING=\"0\" KERNING=\"0\">Tony Bann</FONT></P></TEXTFORMAT> Phone: <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"verdana\" SIZE=\"11\" COLOR=\"#CCCCCC\" LETTERSPACING=\"0\" KERNING=\"0\">049421446</FONT></P></TEXTFORMAT> Confirm Phone: <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"verdana\" SIZE=\"11\" COLOR=\"#CCCCCC\" LETTERSPACING=\"0\" KERNING=\"0\">049421446</FONT></P></TEXTFORMAT> Country: <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"verdana\" SIZE=\"11\" COLOR=\"#CCCCCC\" LETTERSPACING=\"0\" KERNING=\"0\">australia</FONT></P></TEXTFORMAT> Email: <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"verdana\" SIZE=\"11\" COLOR=\"#CCCCCC\" LETTERSPACING=\"0\" KERNING=\"0\">banman@iprimus.com.au</FONT></P></TEXTFORMAT> Confirm Email: <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"verdana\" SIZE=\"11\" COLOR=\"#CCCCCC\" LETTERSPACING=\"0\" KERNING=\"0\">banman@iprimus.com.au</FONT></P></TEXTFORMAT> ------------------------------------------------------------ Send Access Code & Link for The Trader's Key ------------------------------------------------------------ Logged Info : ------------------------------------------------------------ Using: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1) Hostname: 59.095.dsl.syd.iprimus.net.au IP address: 58.178.23.59 Date/Time: 08/06/2008 05:15:25 Quote Link to comment Share on other sites More sharing options...
btherl Posted August 8, 2008 Share Posted August 8, 2008 Well that's weird. Nothing has changed from the flash side? If PHP is displaying all that stuff, then that's what php is receiveing in the form. Try this to confirm: print_r($_REQUEST); Is the HTML in there? Quote Link to comment Share on other sites More sharing options...
transecore Posted August 8, 2008 Author Share Posted August 8, 2008 nah nothing changed from the flash file. nothing changed from the php file either Were do I put that code: print_r($_REQUEST); yea download it mate, if you wanna check it out but yea the top <html> and end </html> have them Quote Link to comment Share on other sites More sharing options...
MasterACE14 Posted August 8, 2008 Share Posted August 8, 2008 put print_r($_REQUEST); at the top of the PHP File. Quote Link to comment Share on other sites More sharing options...
transecore Posted August 8, 2008 Author Share Posted August 8, 2008 put it below, like that? <html> <? print_r($_REQUEST); Quote Link to comment Share on other sites More sharing options...
transecore Posted August 8, 2008 Author Share Posted August 8, 2008 tried that, still displays the same disgusting way Quote Link to comment Share on other sites More sharing options...
MasterACE14 Posted August 8, 2008 Share Posted August 8, 2008 put it here. <body> <?php print_r($_REQUEST); Quote Link to comment Share on other sites More sharing options...
transecore Posted August 8, 2008 Author Share Posted August 8, 2008 this is what the whole thing looks like. --------------------------------------------- <html> <?php print_r($_REQUEST); // Enter your contact email address here $adminaddress = "mick@transecore.com"; // Enter the address of your website here include http://www. $siteaddress ="http://www.traderskey.com.au"; // Enter your company name or site name here $sitename = "The Trader's Key"; /******************************************************* No need to change anything below ... *******************************************************/ // Gets the date and time from your server $date = date("m/d/Y H:i:s"); // Gets the IP Address if ($REMOTE_ADDR == "") $ip = "no ip"; else $ip = getHostByAddr($REMOTE_ADDR); //Process the form data! // and send the information collected in the Flash form to Your nominated email address if ($action != ""): mail("$adminaddress","7 Day Trial Request", "A visitor at $sitename has left the following information\n Full Name: $Name Phone: $Phone Confirm Phone: $ConfirmPhone Country: $Country Email: $Email Confirm Email: $ConfirmEmail ------------------------------------------------------------ Send Access Code & Link for The Trader's Key ------------------------------------------------------------\n Logged Info : ------------------------------------------------------------ Using: $HTTP_USER_AGENT Hostname: $ip IP address: $REMOTE_ADDR Date/Time: $date","FROM:$adminaddress"); //This sends a confirmation to your visitor mail("$email","Thank You for visiting $sitename", "Hi $sender_name,\n Thank you for your interest in $sitename!\n All The Best, $sitename $siteaddress","FROM:$adminaddress"); //Confirmation is sent back to the Flash form that the process is complete $sendresult = "Thank you for visiting <a href = \"$siteaddress\" target = \"_blank\"><u>$sitename</u></a>. You will receive a confirmation email shortly. "; $send_answer = "answer="; $send_answer .= rawurlencode($sendresult); echo "$send_answer"; endif; ?> </html> ------------------------------- But NOW i dont even get an email back. since i changed the top tag Think it was <? before 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.