Jump to content

Recommended Posts

So I developed some online thing on my computer and the PHP on my webhost is definitely different then that on my computer but the headers are being sent way to many times and it worked flawlessely on my computer but now it's all kinds of fucked up.

 

I use header(Location:)s alot through the script for redirecting. At the beginning of my index.php I include my class file that starts a session as well as calls the main class, then after that on index.php if $_GET['page'] isn't sent then it redirects.

 

That's all the headers on those pages then I have every other header on a page that does not have any of the HTML template just PHP code to verify certain things then when verified to redirects back to the original page with a message in a cookie that displays on the page.

 

I'm not very good with headers apparently but any suggestions on how I might approach this kind of thing and fix what I got now?

Link to comment
https://forums.phpfreaks.com/topic/159790-big-problem-with-headers/
Share on other sites

http://scrubbicus.com/simplebudget/index.php

 

Then I have a page called verify.php that is probably just as messed up and that page is completely dedicated for verify information and inserting data and such. It's a whole page of elseif()s that check for a $_POST global that all my forms have in the hidden input field each one is different. Once it finds one through isset($_POST) then it continues on either verifying information or inputting table information when it's done it header redirects back to the original page.

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.