You are here: Re: Where am I wrong? « All PHP « IT news, forums, messages
Re: Where am I wrong?

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;

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация