Jump to content

page redirection


insei

Recommended Posts

I have made a ladder based league system for a game called tekken, where users can log in and report games they just have played, and their opponent has to accept loss in order for the match to be confirmed.

 

http://www.xgs-gaming.com/ladder_system/

 

For the membership system and among other things i use a different file for form posts, and then redirect them to the index file using

 

<?php

echo "<meta http-equiv='refresh' content='0;index.php'>";

?>

 

inside my php code. I understand that this is not a good thing, becouse things might not work as intended.

 

I noticed that my ladder module wont work on internet explorer, so im curious if there is another way of doing this. I tried to use php header function but didnt work. I want to jump after i execute some codes, becouse of working with forms on another file so that they wont get reposted if someone refreshes the page.

 

i tried to use:

 

header('Location: index.php');

it wored on the pages where there was no html code, but if there were i got this error code:

 

Warning: Cannot modify header information - headers already sent by (output started at /home/xgsgagbg/public_html/ladder_system/index.php:18) in /home/xgsgagbg/public_html/ladder_system/index.php on line 91

 

how do i deal with this?

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.