Saturday, 28 September 2013

Cannot print full url text when there is slash in URL

Cannot print full url text when there is slash in URL

I have made a form where when i send values with a slash, in the same page
i read the url value sent by my form input and prints it from $_POST
request value. But something strange happens, if the sentence does not
contain slashes it reads it all.If it contains one slash it reads the
request until the slash and the rest part is not printed. I have used
urldecode and stripslashes but always the rest part after slash is not
printed.
<form autocomplete='off' style='margin-left:8px;' method='POST'
name='form'>
<input type='hidden' value='$parameters2' name='de'>
<input type='hidden' value='$parameters' name='ef'>
<input type='hidden' value='$parameters4' name='dee'>
<input autocomplete='off' id='text' type='text' name='query_string'
size='17' class='BodyCopy' style='border: none; width:89%;
font-family:monospace; font-size:12px;' autofocus></form>
$parameters = $_POST['query_string'];
$parameters3 = $_POST['de'];
$parameters4 = $_POST['ef'];
$parameters5 = $_POST['dee'];
echo $parameters;
echo $parameters3;
echo $parameters4;
echo $parameters5;

No comments:

Post a Comment