You are here: Re: redirection question « PHP Programming Language « IT news, forums, messages
Re: redirection question

Posted by GAMEchief on 01/31/07 03:44

On Jan 30, 7:10 pm, Krustov <m...@privacy.net> wrote:
> <comp.lang.php>
> <Gunnar G>
> <Tue, 30 Jan 2007 23:09:59 GMT>
> <bfQvh.30769$E02.12...@newsb.telia.net>
>
> > Perhaps this is not the best design right now in my php script, but I've
> > just started with php after a long break.
>
> > The thing is that I enter a page called foo1.php, this script do some
> > calculations and should then send directly send the user to a page called
> > foo2.php together with the variables $bar and $bar2.
>
> > On the page foo1.php there will be no input or any clicking required by the
> > user. Just as soon as the values are calculated, it should continue.
> > How can I achieve this?
>
> Is there any good valid reason why you want to redirect to foo2.php ? .
>
> Why not just do the calculations in foo1.php and then display the
> results underneath in foo1.php when they are done .
>
> --www.phptakeaway.co.uk
> (work in progress)

He's probably setting a cookie, which won't be read until a new page
is loaded.
Ya, header("Location: foo2.php"); is what you want.

 

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

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