Re: what is the problem?
| From: | John Manko | Date: | Sat, 19 Jul 2003 14:30:00 +0000 |
| Subject: | Re: what is the problem? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-155888@lists.php.net to get a copy of this message | ||
just a few more tips.
the following ensures that an form input field by the name of 'sentence' is actually sent via method=post, otherwhile you can escape it.
this is good for low level script integrity
if( isset($_POST['sentence']) ) echo $_POST['sentence'];
you might want to also look into the following functions.
rawurldecode()
htmlspecialchars()
addslashes()
stripslashes()
chop()
Chris Knipe wrote:
form.php is this: <form method="post" action="takeform.php"> <input type="text" value="sentence"> </form><input type="text" name="sentence" value="sentence"> Learn to code html ;)takeform.php is this: <? echo $sentence; ?>echo $_POST['sentence'];these codes are running at my hosting but it couldn't run on my computer. I tried on pws, apache, php 4.0.4, php 4.2.2 and php5 but it didn't work. why i couldn't run it?It's more than likely register_globals that is off. -- me