[FX.php List] Alternative to Include( )/require( )

Jonathan Schwartz jonathan at eschwartz.com
Tue Aug 1 09:52:42 MDT 2006


This is a basic issue of script page navigation that eludes me.

I can navigate from one page to a second script page when using form/ 
button.  Same for <a href> links. No issue there.

However, when using 'if'/else scripting, and the desired result is to 
navigate to a second page, the only functions I know are include () 
or require ().  These functions load page 2 into page 1, but then the 
page 1 url is still showing in the browser address.  I am also having 
difficulty troubleshooting my present page 2 because page 1 keeps 
appearing when page 2 scripts fail.

I just want to navigate to page 2 and leave page 1 behind.

I have attempted to use the header()  function, but run afoul of "Can 
not modify header" error messages due to using sessions.

How is that best done?

Thanks very much.  This one has bothered me for some time.

Jonathan
-- 

Jonathan Schwartz
Schwartz & Company
jonathan at eschwartz.com
http://www.eschwartz.com



More information about the FX.php_List mailing list