sandy1028 Posted September 4, 2007 Share Posted September 4, 2007 Hi, From page1.php I am passing the querystring to page2.php <a href=page1.php?v1=name> In page2 I should pass another querystring to sort the table. <a href=page2.php?id=name1> I am not able to view the page with v1 and id together. Please help me with this Quote Link to comment https://forums.phpfreaks.com/topic/67882-query-string/ Share on other sites More sharing options...
gerkintrigg Posted September 4, 2007 Share Posted September 4, 2007 use sessions. you'll need to use the code: $_SESSION['v1']=$_POST['name']; on the first page... You'll need to start sessions on each page of your site if you want to keep them running on the server, which is a bit of a pain... but you do that by putting this code at the VERY BEGINNING of your page (no spaces or anything else otherwise you get errors): <?php session_start(); header("Cache-control: private"); //IE 6 Fix ?> hope that helps. If not... look up sessions in the php freaks tutorials Quote Link to comment https://forums.phpfreaks.com/topic/67882-query-string/#findComment-341226 Share on other sites More sharing options...
jitesh Posted September 4, 2007 Share Posted September 4, 2007 page1 <a href=page1.php?v1=name> page2 <a href=page2.php?id=name1&v1=<?php echo $_GET['v1'];?>> Quote Link to comment https://forums.phpfreaks.com/topic/67882-query-string/#findComment-341227 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.