lumberjakel
Programmer
Look at this script. First time you use it it show a textarea. When you type something (& submit) it will show how the data will be available for your script.
When you try to enter a ", php changes it to \", for example, he said: "hello world"! will become
he said: \"hello world\"!.
The problem is how PHP auto-decodes the query, because
will show normal quotes.
How can I solve this?
When you try to enter a ", php changes it to \", for example, he said: "hello world"! will become
he said: \"hello world\"!.
The problem is how PHP auto-decodes the query, because
Code:
echo urldecode($REQUEST_URI);
How can I solve this?
Code:
<?
if (empty($textfield))
{
?>
<form name="form1" method="get" action="">
<textarea name="textfield"></textarea>
<br>
<input type="submit" value="Submit">
</form>
<?
}
else
{
echo $textfield."<br>";
echo urldecode($REQUEST_URI);
}
?>