Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Return to previous page

Status
Not open for further replies.

james0816

Programmer
Jan 9, 2003
295
US
Is there an easier way to return to a previous page where you are passing variables instead of passing them to the next page and then passing them back?

seems really tedious if you passing several variables to between pages.

Example:

Page1:
<a href='page2.php?a=1&b=1&c=3'>click</a>

Page2:
<?php
$a1=$_GET['a'];
$b1=$_GET['b'];
$c1=$_GET['c'];
...
some code
...

header(Refresh: 5; URL='page2.php?a='.$a1.'&b='.$b1.'&c='.$c1);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top