Jump to content

Email Form Not Displaying Properly When Received


transecore

Recommended Posts

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\">[email protected]</FONT></P></TEXTFORMAT>

Confirm Email: <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"verdana\" SIZE=\"11\" COLOR=\"#CCCCCC\" LETTERSPACING=\"0\" KERNING=\"0\">[email protected]</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

 

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

this is what the whole thing looks like.

---------------------------------------------

<html>

 

<?php 

 

print_r($_REQUEST);

 

 

// Enter your contact email address here

$adminaddress = "[email protected]";

// 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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.