How do IF to redirect to a new page on my site?

How do IF to redirect to a new page on my site?

am 22.02.2008 21:56:36 von Greg Cocks

Hello,

I have a page where some users set some
parameters from pulldowns on a page (in a form.)

Based on the user selection, the code builds some SQL (i.e., building
the WHERE part of the SQL string), and grabs some data out of a
PostgreSQL, and returns it to an array, $ary_query_result

Then:

if(isset($ary_query_result)) {
...
serialize array to text file
few other tasks
['jump' to results page]
...
}
else
{
...
tell user to adjust parameters
[stay on page]=20
...
}

I have built a results page that unserializes the results array above,
displays some of them in a table, and allows the user to chart, save all
the data columns & rows, etc - all works fine.


HERE IS THE PROBLEM: how do I ['jump' to results page]????

This would seem such a simple thing to do...

i.e., IF (condition) go to new url ELSE stay at this URL


-----

I tried:

(i) print "