Page 1 of 1

String with spaces

Posted: Wed Mar 22, 2006 12:15 pm
by spacebiscuit
Hi,

I am trying to pass a variable which is a string with spaces in via the html header (?)


<href=index.php?var="String with spaces">Link</a>

It only seems to pass the the part before the space. I also triued writing the string into a variable and passing that but the same happens.

Thanks,

Rob.

Posted: Wed Mar 22, 2006 12:20 pm
by Burrito
look at urlencode()

Posted: Wed Mar 22, 2006 3:09 pm
by spacebiscuit
----that work's great thanks!

Rob.