I know for a fact php is working. phpinfo(); works fine, and i've gotten other things to work (such as a sample IP-logger). But for some reason, it's only GET and POST which isn't working.
From: "Michael Scappa" <[EMAIL PROTECTED]> To: "'Dan Aloma'" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Subject: RE: [PHP-INSTALL] Forms not parsing data Date: Wed, 21 Apr 2004 16:16:21 -0400
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/
_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfeeŽ Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963