Jump to content

Change variable by link ?


Mikethabest

Recommended Posts

How to change a [b]PHP[/b] variable by a [b]HTML Link[/b] ([i]<a>[/i]) ?
!! Without going to an other page !! Cause other variables must stay the same !!

Thanks,

Mikethabest [img src=\"style_emoticons/[#EMO_DIR#]/excl.gif\" style=\"vertical-align:middle\" emoid=\":excl:\" border=\"0\" alt=\"excl.gif\" /]
Link to comment
https://forums.phpfreaks.com/topic/10366-change-variable-by-link/
Share on other sites

Not sure if it is possible - certainly not possible easily(might be able to be achieved with ajax but i dont know anything about that)

But perhaps you could store all these variables that you want to keep in a session and then redirect to the same page but set the variable you want to change in the url?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.