i am going from one page to another when someone clicks on a link.
I would like to pass a couple of variables from one page to the other and i was trying to do this using the following method, the variable names are a and b.
page.php?a=$a&b=$b
this worked fine except when a or b is equal to a two or more word string like Tom Hanks
this would try to load
page.php?a=$a&b=$Tom Hanks
which is bad cause there is a space in the link...
so i tried to use an object and then an array to pass...
so i tried
$arr = array($a,$b);
page.php?arr=$arr
this does not seem to be working, either does, using an object.
it just passes junk.
what am doing wrong?
is there an easier way to do this?
thanks
I would like to pass a couple of variables from one page to the other and i was trying to do this using the following method, the variable names are a and b.
page.php?a=$a&b=$b
this worked fine except when a or b is equal to a two or more word string like Tom Hanks
this would try to load
page.php?a=$a&b=$Tom Hanks
which is bad cause there is a space in the link...
so i tried to use an object and then an array to pass...
so i tried
$arr = array($a,$b);
page.php?arr=$arr
this does not seem to be working, either does, using an object.
it just passes junk.
what am doing wrong?
is there an easier way to do this?
thanks