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!
Is there any way to increase a variable in php on an event such as onclick;
What I need is a global variable to count how many links were chosen by a user during a session in a site. Is that possible;
Last edited by grammic on Tue Sep 21, 2004 6:40 am, edited 1 time in total.
So if I reload the page what happens to what;
I mean where do I declare a global variable and how does it get increased;
I want that to happen when a user chooses a link.
- send the page to itself with a variable. (not to real link)
- read the value of the variable and get the idea that where the page should go.
- increment your session variable
- redirect the page. (to real link)