Sorry about not including code the first time. Here is a snippet of code I am fairly certain should be doing something. Thank you SOOO much for the help. I've been working on setting up php for four days now and EVERYTHING else works (phpinfo() calls, etc), but for some reason forms, even ones that I know should be working don't take values. They just return you to the same screen.

CODE:
<html>
<body>

<br><br>
<?=$errormessage?>
<br>

<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
<table width="500" border="0" cellpadding="5" cellspacing="0">
<tr>
<td>Your name:</td>
<td><input type="text" name="name"value="<?=$_POST['name']?>"></td>
</tr>
<tr>
<td>Your email:</td>
<td><input type="text" name="email" value="<?=$_POST['email']?>"><td>
<tr>
<tr>
<td>Your message:</td>
<td><textarea name="message"><?=$_POST['message']?></textarea></td></tr>
</table>
<input type="hidden" name="required" value="name,email,message">
<input type="submit" name="submit" value="submit">

</body></html>

<?php
if ($_POST['submit']) {
  print "the form has been submitted";
}
?>



From: Richard Davey <[EMAIL PROTECTED]>
Reply-To: Richard Davey <[EMAIL PROTECTED]>
To: "Dan Aloma" <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] [Q]PHP not taking input values from forms
Date: Wed, 11 Feb 2004 17:49:56 +0000

Hello Dan,

Wednesday, February 11, 2004, 5:47:21 PM, you wrote:

DA> Can anyone tell me why PHP is not taking any values I give it? In other
DA> words, if I post something it doesn't accept any of those values. I have set
DA> register_globals to on, which is the only thing I could think of that would
DA> be doing this. I'm a newbie to php, and I've scoured the net for an answer
DA> to no avail. Thanks in advance.


Post your code and more importantly, turn register globals off again
and learn to code without them on - they're a security nightmare.

--
Best regards,
 Richard                            mailto:[EMAIL PROTECTED]



_________________________________________________________________
Check out the great features of the new MSN 9 Dial-up, with the MSN Dial-up Accelerator. http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to