
|
 |

Encoding form variables in a URLIf you're putting form variables in a URL, you can get into strife when the user enters spaces or other non-alphanumeric characters in the form. The way to convert their data to a URL compliant format is as follows:
<?php
echo '<a href="webpage.php?formvalue='.htmlentities(urlencode($formvalue)).'">';
?>
|
|
|