Mikethabest Posted May 24, 2006 Share Posted May 24, 2006 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\" /] Quote Link to comment https://forums.phpfreaks.com/topic/10366-change-variable-by-link/ Share on other sites More sharing options...
GingerRobot Posted May 24, 2006 Share Posted May 24, 2006 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? Quote Link to comment https://forums.phpfreaks.com/topic/10366-change-variable-by-link/#findComment-38705 Share on other sites More sharing options...
Mikethabest Posted May 25, 2006 Author Share Posted May 25, 2006 >Solved<For index.php i needed to change the variable p and i just a link directing to index.php?p=....Thanks :) Quote Link to comment https://forums.phpfreaks.com/topic/10366-change-variable-by-link/#findComment-38797 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.