Posted By

raondo on 07/11/06


Tagged

url encode


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

luman
millisami
NexusRex
vali29
pixelhandler


urlencode


 / Published in: PHP
 

URL: http://us2.php.net/manual/en/function.urlencode.php

This function is convenient when encoding a string to be used in a query part of a URL, as a convenient way to pass variables to the next page.

  1. <?php
  2. echo '<a href="mycgi?foo=', urlencode($userinput), '">';
  3. ?>

Report this snippet  

You need to login to post a comment.