i've been working really hard on a new website and i've reached a pretty tough to resolve problem right about now:
the website structure is as follows:
- main.php (this file contains the site layout divs, including banners, navigation menus and login forms)
- when a user clicks on any link, I use html to send GET variables and reload main.php and include the corresponding html file into the content div, creating a smooth frame-style navigation
- i just realized, however, that I cannot link from one page to another directly because I can't send anymore headers as I've outputted information in main in order to construct the site's dynamic layout (multiple languages for menus)
as far as normal text links go it's fine, i can just use html linking, but for my login page...
when the user submits the form I run a script and validate the entires, check for duplicates in the database, etc and then if everything is ok I add a new entry. after adding the user I would like to send the user to a welcome page but I can't send anymore headers... i don't send any in the script but since it's running from a file included in main.php it doesn't seem to work...
can anyone help me???? thanks!
the website structure is as follows:
- main.php (this file contains the site layout divs, including banners, navigation menus and login forms)
- when a user clicks on any link, I use html to send GET variables and reload main.php and include the corresponding html file into the content div, creating a smooth frame-style navigation
- i just realized, however, that I cannot link from one page to another directly because I can't send anymore headers as I've outputted information in main in order to construct the site's dynamic layout (multiple languages for menus)
as far as normal text links go it's fine, i can just use html linking, but for my login page...
when the user submits the form I run a script and validate the entires, check for duplicates in the database, etc and then if everything is ok I add a new entry. after adding the user I would like to send the user to a welcome page but I can't send anymore headers... i don't send any in the script but since it's running from a file included in main.php it doesn't seem to work...
can anyone help me???? thanks!
