Page 1 of 1

changing value of php variable

Posted: Fri May 23, 2008 4:48 am
by thosecars82
hello
I wanted to change the value of a php variable when a user clicks on an anchor <a href....></a>
Does anyone knows how to do this without using javascript?
Thanks in advance

Re: changing value of php variable

Posted: Fri May 23, 2008 4:54 am
by Dutchben
There is no way to do anything on the clientside using php. The only thing you can do is have different anchors with different values like href="index.php?val=1", href="index.php?val=2" and use the value of val in your script

Re: changing value of php variable

Posted: Fri May 23, 2008 5:07 am
by thosecars82
Dutchben wrote:There is no way to do anything on the clientside using php. The only thing you can do is have different anchors with different values like href="index.php?val=1", href="index.php?val=2" and use the value of val in your script
Thanks, that was what I was looking for.