Do a phpinfo(), make sure its reading the correct php.ini.

-----Original Message-----
From: Dan Aloma [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 21, 2004 3:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INSTALL] Forms not parsing data

  So, I've installed PHP 4.3.6 and done "make test" and everything runs 
fine. But now, when I run the scripts below, nothing happens. Actually,
I 
get an email with no returned values. This is a very common problem, but

nothing I've read can fix it. FYI, I have my register_globals set to the

default of off. I know it has to be something in the settings that's
causing 
this, but I don't know what it could be. TIA.

INDEX.PHP----------------------------------
<form action="hello.php" method="POST">
Your first name <input type="text" name="name">
Your favorite color <input type="text" name="color">
Your email address <input type="text" name="email">
<input type="submit" value="Send Info">
</form>

HELLO.PHP-------------------------------
<?php
$senderemail = $_POST['email'];
$sendername = $_POST['name'];
$sendercolor = $_POST['color'];
$recipient = "[EMAIL PROTECTED]";
$subject = "Your subject line goes here";
$mailheader = "From: $senderemail\n";
$mailheader .= "Reply-To: $senderemail\n\n";
$message = "Sender's name: $sendername\n";
$message .= "Sender's favorite color: $sendercolor\n\n";
mail($recipient, $subject, $message, $mailheader) or die ("Failure");
?>

_________________________________________________________________
Watch LIVE baseball games on your computer with MLB.TV, included with
MSN 
Premium! 
http://join.msn.com/?page=features/mlb&pgmarket=en-us/go/onm00200439ave/
direct/01/

Reply via email to