htcilt
02-08-2010, 02:53 PM
Hi all,
I have a standard for sent using the $_GET method.
It contains a number of checkboxes - any combination can be ticked e.g.
<input type="checkbox" name="lang[]" value="en">English<br />
<input type="checkbox" name="lang[]" value="fr">Français<br />
<input type="checkbox" name="lang[]" value="es">Español<br />
If all 3 are ticked and the form is submitted the URL shows:
http://www.mysite.com/results.php?lang[/url][]=en&lang[]=fr&lang[]=es
I would like to sent the contents of the array as a single parameter with a separating character that will be used to explode back into an array i.e:
http://www.mysite.com/results.php?lang[/url]=en|fr|es
Although my current method does the job, the above method is a much cleaner url. Its also the method eBay use.
Does anyone know how this can be acheived?
I have a standard for sent using the $_GET method.
It contains a number of checkboxes - any combination can be ticked e.g.
<input type="checkbox" name="lang[]" value="en">English<br />
<input type="checkbox" name="lang[]" value="fr">Français<br />
<input type="checkbox" name="lang[]" value="es">Español<br />
If all 3 are ticked and the form is submitted the URL shows:
http://www.mysite.com/results.php?lang[/url][]=en&lang[]=fr&lang[]=es
I would like to sent the contents of the array as a single parameter with a separating character that will be used to explode back into an array i.e:
http://www.mysite.com/results.php?lang[/url]=en|fr|es
Although my current method does the job, the above method is a much cleaner url. Its also the method eBay use.
Does anyone know how this can be acheived?