crmamx Posted February 1, 2011 Share Posted February 1, 2011 I am passing the variable $searchno from form1.html using <form action="display1.php" method="post" Display1.php reads my database and displays the data. Now I want to link from the displayed page to display2.php and pass and capture the same variable $searchno. How do I do that? Quote Link to comment Share on other sites More sharing options...
AbraCadaver Posted February 1, 2011 Share Posted February 1, 2011 display1.php echo '<a href="display2.php?searchno=' . $_POST['searchno'] . '">Click me</a>'; display2.php echo $_GET['searchno']; Quote Link to comment Share on other sites More sharing options...
crmamx Posted February 1, 2011 Author Share Posted February 1, 2011 I had tried variations of that but could not get it to work. Figured I was using wrong method. Thank you very much. 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.