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!
How do you pass a variable using GET when a text link is pressed? The only difference is that it reloads the current page but this time with a new value for the variable so it would be like it passed the new value to itself. Like if it were a gallery, it would just refresh itself with a new picture depending on the text link pressed.
Pardon if my question isn't all clear, I'm kinda new to php and am still trying to learn the ropes.
I was just thinking, if that sends it using GET, how do I do the same but this time using POST? Same scenario, all text links and no forms. This is just an afterthought.
Right. GET and POST requests always look like"var1=value&var2=othervalue..." and the only difference is that GET requests are sent directly through the URL as a query string.