note 8954 added to echo
| From: | supz at ghetto dot mine dot nu | Date: | Mon, 09 Oct 2000 02:47:11 +0000 |
| Subject: | note 8954 added to echo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6226@lists.php.net to get a copy of this message | ||
I'm having problems with having an input form and a submit button and having the form action be
the html file. Example:
<pre>
<html>
<body>
<?
echo $blah . "<p>";
?>
<form method="post" action="blah.php">
<input type="text" name="blah" value="<? echo $blah; ?>">
<input type="submit" value="go">
</form>
</body>
</html>
</pre>
The problem is that it replaces every quote and apostrophe in the $blah variable with a \ in front
of it, which is really bad for entering text and stuff. Any ideas why it;s doin this? How to disable
it?
http://www.php.net/manual/function.echo.php