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\">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

 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.