Jump to content

Web pags structure help?


krdzal

Recommended Posts

I have one file index.php that im using like layout. In the middle of the file i have other php file that controls which file to be displayed depending from the task in the URL. So when i i want to display the login form i just call login.php script inside the index.php file.

My question how can i set cookies or something else that require headers not to be sent.

I can't from that file login.php because is always in after the headers are sent (it is in the middle of the layout file index.php)

Maybe someone to recommend some other structure or some solution :)

 

Thank You in advance

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.