Dan Aloma wrote:

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";
}
?>

What's the output to the browser when you submit this?


--
By-Tor.com
It's all about the Rush
http://www.by-tor.com

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



Reply via email to