Jump to content

Archived

This topic is now archived and is closed to further replies.

zhahaman2001

pass var from one page to another

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)

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
You might also look into using sessions.

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites
Search for a tutorial on [i]php sessions[/i].

Share this post


Link to post
Share on other sites

×

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.