Ingus Graholskis Ingus Graholskis - 1 month ago 10
HTML Question

& changes to %26 and = to %3D

I have a form that returns link on filter

<div class="item" style="float:right">
<form class="ui icon input" name="search" action="" method="GET">
<input type="hidden" name="view" value="&user_id=156">
<input type="search" name="filter" style="width:10em;" placeholder="Filter..">
<i class="filter icon"></i>
</form>
</div>


But it turns
&
in
%26
and
=
to
%3D


I tried encode but it did not worked!
Please help

Tried :

$query_string = 'objects&user_id=156';
$a = urldecode($query_string);

Answer
<?php
    $query_string = 'objects%26user_id%3D156';
    $a = urldecode($query_string);
    var_dump($a);

remove var_dump after test

Comments