Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hyperlink/http post vars 1

Status
Not open for further replies.

wagnj1

Programmer
Jul 21, 2003
154
CA
I need to have a php page set up so when a person clicks on a hyperlink it links the page to itself but passes itself a variable that I can use once they've selected that specific hyperlink.

I have a set of hyperlinks for pictures and a display box on the screen and I want it set up so that when they select a hyperlink for a specific picture it will "post" (not technically posting since no form) to itself so when the page reloads I can open that specific picture in the display box.
 
just use php to add a variable to the end of the url (in the form filename.php?varname=varvalue).

this can then be used the next time filename.php opens as $_GET['varname'].

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top