Page 1 of 1
How do I make a link from a variable?
Posted: Wed Apr 22, 2009 7:09 pm
by killer1390
Hi, I need a link that when you click it,
it sets a php variable.How do I do this?

Re: How do I make a link from a variable?
Posted: Wed Apr 22, 2009 7:13 pm
by jazz090
server side or client side? cos if u wanna do it server side, just post the data and catch it with $_POST. if u wanna go client side however your best bet would be to use javascript and store the variable as a java variable and attach the function to the link. if however ur working with $_SESSION, just use AJAX. you cannot possibly change the variable once the script has finished running (unless u initialize it again which would be the same as refreshing, posting or running an AJAX)
Re: How do I make a link from a variable?
Posted: Wed Apr 22, 2009 7:30 pm
by killer1390
You just confused the crumbs out of me. Definetaly client side.