Jump to content


Photo

Passing strings in the URL


  • Please log in to reply
1 reply to this topic

#1 Mateobus

Mateobus
  • Members
  • PipPipPip
  • Advanced Member
  • 95 posts

Posted 23 August 2006 - 02:45 PM

Suppose that you were passing dynamic company names via the $_GET array.  Is there a function you can apply to the string to avoid potential errors because of the & sign in a string, for example:

site.com?company=Dell
and
site.com?company=Fujitsu

would be fine, but

site.com?company=AT&T wouldn't work.

#2 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 23 August 2006 - 02:47 PM

urlencode().




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users