Jump to content


Photo

Change variable by link ?


  • Please log in to reply
2 replies to this topic

#1 Mikethabest

Mikethabest
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 24 May 2006 - 04:54 PM

How to change a PHP variable by a HTML Link (<a>) ?
!! 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\" /]

#2 GingerRobot

GingerRobot
  • Staff Alumni
  • Advanced Member
  • 4,086 posts
  • LocationUK

Posted 24 May 2006 - 08:43 PM

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?



#3 Mikethabest

Mikethabest
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 25 May 2006 - 06:54 AM

>Solved<

For index.php i needed to change the variable p and i just a link directing to index.php?p=....

Thanks :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users