Jump to content


Photo

How can I pass a value in a link and not display it


  • Please log in to reply
2 replies to this topic

#1 HGeneAnthony

HGeneAnthony
  • Members
  • PipPipPip
  • Advanced Member
  • 95 posts

Posted 04 June 2006 - 11:33 AM

This might sound a little stange but the scenario I have is I'm working on a page which has a link based navigation bar. When the user types Next it passes index.php?goto=next. The problem with this is if the user reloads the page I have it set to check if goto was passed and to carry out the action if it was. The goto action changes the starting record of what's passed and it displays 25 records at a time. So if the user clicks Next the first time it will change the starting record to 25 and on a refresh it will change it to 50. I would like to pass it as a post variable but I don't know if it's possible with a hyperlink. Does anyone have an idea how I can resolve this?

#2 stephenk

stephenk
  • Members
  • PipPipPip
  • Advanced Member
  • 62 posts

Posted 04 June 2006 - 11:42 AM

Im not 100% sure of what you're trying here, but couldn't you use

?goto=25 // ?goto=50 // etc, and grab the variable from there, then it wont matter if the user refreshes.

Stephen

#3 HGeneAnthony

HGeneAnthony
  • Members
  • PipPipPip
  • Advanced Member
  • 95 posts

Posted 04 June 2006 - 12:03 PM

[!--quoteo(post=379846:date=Jun 4 2006, 07:42 AM:name=stephenk)--][div class=\'quotetop\']QUOTE(stephenk @ Jun 4 2006, 07:42 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
Im not 100% sure of what you're trying here, but couldn't you use

?goto=25 // ?goto=50 // etc, and grab the variable from there, then it wont matter if the user refreshes.

Stephen
[/quote]

Yeah I though of it. I guess I'll just do it this way. Thanx!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users