Example we have a form :
<form action="" method="GET">
<input type="text" name="Search">
<input type="submit" value="Search">
</form>
if click on Search btn url will redirect to
search.php?Search=parametr
how i can Encode This Parametr As Base64 ?
search.php?Search=cGFyYW1ldHI=
It should be as simple as that . If you want to send the encoded parameter in the url you have to encode it before your html response. Else this encoding makes no sense anyway.
$base64 = base64_encode($parameter);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.