Re: redirection question



On Jan 30, 7:10 pm, Krustov <m...@xxxxxxxxxxx> wrote:
<comp.lang.php>
<Gunnar G>
<Tue, 30 Jan 2007 23:09:59 GMT>
<bfQvh.30769$E02.12...@xxxxxxxxxxxxxxx>

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.

.



Relevant Pages

  • Re: Autofill data from a php form...
    ... You did not say that you want to make any PHP integrations. ... Javascript is run client-side and they have no native runtime ... calculations then such approach is hugely ineffective IMO. ... Other option is to keep everything server-side and ...
    (comp.lang.javascript)
  • Re: misunderstanding
    ... Well, if it wouldn't be significant, why would PHP hide that inaccuracy as a default? ... floating-point numbers are 1) accurate enough for almost all applications and 2) supported by hardware, which means they are very fast. ... The calculations made with PHP are faster even if PHP also need to also hide that inaccuracy. ...
    (perl.beginners)
  • Re: redirection question
    ... just started with php after a long break. ... calculations and should then send directly send the user to a page called ... He's probably setting a cookie, which won't be read until a new page ... request as a JS redirect if the headers have already been sent. ...
    (comp.lang.php)
  • Re: Real-time form-field updating
    ... > I have a form that is using HTML and PHP to make calculations for an ... > order form. ...
    (comp.lang.javascript)
  • RE: [PHP] PHP date: ISO year = loss of hair
    ... Subject: [PHP] PHP date: ISO year = loss of hair ... The standard date calculations don't show a week number. ... This conforms to the ISO date ...
    (php.general)