zhahaman2001 Posted October 6, 2006 Share Posted October 6, 2006 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) Quote Link to comment Share on other sites More sharing options...
Tandem Posted October 7, 2006 Share Posted October 7, 2006 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 Link to comment Share on other sites More sharing options...
trq Posted October 7, 2006 Share Posted October 7, 2006 You might also look into using sessions. Quote Link to comment Share on other sites More sharing options...
zhahaman2001 Posted October 7, 2006 Author Share Posted October 7, 2006 [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? Quote Link to comment Share on other sites More sharing options...
zhahaman2001 Posted October 7, 2006 Author Share Posted October 7, 2006 also (the main point of this is to keep the vars hidden) is there a way to hide them from the url and source? Quote Link to comment Share on other sites More sharing options...
trq Posted October 7, 2006 Share Posted October 7, 2006 Search for a tutorial on [i]php sessions[/i]. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.