Jump to content

pass var from one page to another


zhahaman2001

Recommended Posts

ok on my site i have a lot of links that look like this
<a href=nextpage.php?var=$var>Next Page</a>
because thats the only way i know to pass vars from one page to another easly is there any other way like the html <form> way (i dont like the html form way because the only way i know how to do that is with a button and all i want is a text link)
Link to comment
https://forums.phpfreaks.com/topic/23230-pass-var-from-one-page-to-another/
Share on other sites

[quote author=Tandem link=topic=110750.msg448317#msg448317 date=1160180030]
If you only want to use links then GET is your best option.

To use POST (to my knowledge), you need to use a submit input to submit the form.
[/quote]

can i have an code example please?

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.