php blank email problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
vettahead
Forum Newbie
Posts: 3
Joined: Tue May 06, 2008 4:34 am

php blank email problem

Post 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 :)
Last edited by vettahead on Mon Sep 08, 2008 6:56 am, edited 1 time in total.
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: php blank email problem

Post 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!
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: php blank email problem

Post by josh »

Output your environment variables ( $_GLOBALS ).

print_r and echo are your friends
Post Reply