I am generating dynamic links with a variable on one of my pages, which works fine EXCEPT when the variable contains a space in it - then, the php link variable only shows the first part -
ex. the link "www.test.com/results.php?$newvar=test var" actually comes out like "www.test.com/results.php?$newvar=test"....
Is there any way to take the variable and search for whitespaces, and then replace the empty space with a %20 or other character that will enable the link to recognize it?
Thanks