Page 1 of 1

php blank email problem

Posted: Mon Sep 08, 2008 4:17 am
by vettahead
hello there :) this is a nooob question i know, but i really am at my wits end!

i have a pice of php (posted below|) that is a basic webform, now it works in firefox, camino ect, but when it goes through internet explorer i just get a blank email from apache??? :banghead: help!!! im going mental :(

Code: Select all

<?
Error_Reporting(E_ALL & ~E_NOTICE);
 
 while ($request = current($_REQUEST)) {
    if (key($_REQUEST)!='web@ameliasbrides.com'') {
        $pre_array=split ("&777&",  $request);
        $post_vars[key($_REQUEST)][0]=$pre_array[0];
        $post_vars[key($_REQUEST)][1]=$pre_array[1];
    }
    next($_REQUEST);
}
 
 
 
reset($post_vars);
 
 
$subject="From ".$post_vars['your_name'][0] ;
$headers= "From: ".$post_vars['your_email'][0] ."\n";
 $headers.='Content-type: text/html; charset=iso-8859-1';
 $message='';
  while ($mess = current($post_vars)) {
    if ((key($post_vars)!="i") && (key($post_vars)!="your_email") && (key($post_vars)!="your_name")) {
 
        $message.="<strong>".$mess[1]."</strong>&nbsp;&nbsp;&nbsp;".$mess[0]."<br>";
    }
    next($post_vars);
 }
$emailAddress = 'lol@lol.com'; // < your email here
mail($emailAddress, $subject, "  
<html>
<head>
<title>Contact letter</title>
</head>
<body>
<br>
  ".$message."
</body>
</html>" , $headers);
 
 Header( "Location: http://www.ameliasbrides.com" ); 
?>
 
any ideas would be appreciated, go to http://www.ameliasbrides.com to see the form in action if it helps :) thanks in advance :)

Re: php blank email problem

Posted: Mon Sep 08, 2008 6:30 am
by JAB Creations
Internet Explorer? Hmm, well sounds like an output problem then. Could you please post just the code that is output to IE. IS it different at all than the HTML for other browsers? Make it in to an HTML file and manually open it with IE.

Also delete the email address from your post. Bots will suck it up and send hordes of spam to the address. Never post email addresses to clientside code, ever!

Re: php blank email problem

Posted: Tue Sep 09, 2008 5:16 am
by josh
Output your environment variables ( $_GLOBALS ).

print_r and echo are your friends