Posted by jukka on 01/07/06 14:52
> Whatever you want. But just header("Location:
> http://www.site.com/part2.php?var1=stuff&var2=morestuff"); in part1.
> Then in part2 you header("Location:
> http://www.site.com/part1.php?result=whatever");
>
> (Forget that urlencode thing, I was hallucinating)
So to make myself clear:
part1----
header("Location:
http://www.site.com/part2.php?var1=$stuff&var2=$morestuff");
part2----
$stuff = $_GET["var1"];
$morestuff = $_GET["var2"];
$sum = $stuff + $morestuff;
header("Location: http://www.site.com/part1.php?result=$sum");
part1----
$sum = $_GET["result"];
echo $sum;
[Back to original message]
|