Forum Moderators: coopster

Message Too Old, No Replies

Automatically calling a page without click on A HREF

         

AndyD

9:06 pm on Feb 20, 2004 (gmt 0)

10+ Year Member



Sorry, but another query!

I have a PHP page for adding a record that calls an update PHP page. I currently display the record out once it's updated and the user would press a link to get back to the main PHP display page.

Is it possible to call the update page and then automatically call the display page without the user having to click?

I know I could make this one routine/page, but I find it easier to follow when the add/update/delete pages are seperate.

Any help appreciated.

Andy

txskydiver

9:11 pm on Feb 20, 2004 (gmt 0)

10+ Year Member



If I understand what you are looking for it's a redirect of sorts.

Try:

header("Location: URL");

where URL is the page you want to direct them to.

AndyD

9:39 pm on Feb 20, 2004 (gmt 0)

10+ Year Member



That has done the trick.

Cheers,

Andy.