changing value of php variable

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
thosecars82
Forum Commoner
Posts: 94
Joined: Thu Apr 03, 2008 6:31 am
Location: Arganda, Madrid
Contact:

changing value of php variable

Post 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
Dutchben
Forum Newbie
Posts: 12
Joined: Wed May 14, 2008 10:19 am

Re: changing value of php variable

Post 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
thosecars82
Forum Commoner
Posts: 94
Joined: Thu Apr 03, 2008 6:31 am
Location: Arganda, Madrid
Contact:

Re: changing value of php variable

Post 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.
Post Reply