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
changing value of php variable
Moderator: General Moderators
-
thosecars82
- Forum Commoner
- Posts: 94
- Joined: Thu Apr 03, 2008 6:31 am
- Location: Arganda, Madrid
- Contact:
Re: changing value of php variable
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
-
thosecars82
- Forum Commoner
- Posts: 94
- Joined: Thu Apr 03, 2008 6:31 am
- Location: Arganda, Madrid
- Contact:
Re: changing value of php variable
Thanks, that was what I was looking for.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