Thread: PHP Header Help
View Single Post
Re: PHP Header Help
Old
  (#7)
FrostyCoolSlug
Member
 
FrostyCoolSlug's Avatar
 
Status: Offline
Posts: 318
Join Date: Mar 2004
Default Re: PHP Header Help - 11-04-2005

register_globals is also a great way of making PHP Scripts exploitable :/

PHP Code:
if(isset($submit)){ 
a better way of doing this, would be:

PHP Code:
if (!empty($_POST)) { 
Other than that, looks ok.. but..
always make sure you die(); after your HTTP headers are sent, this stops PHP sending output which will then make the header ignored by browsers (I've hit this problem before ) So:

PHP Code:
header("Location: http://lan.crazymonkeycomputers.com/rt.htm");
die();

(You also have a space after your header call, this could also cause problems.)


=====
Craig "FrostyCoolSlug" McLure
Network Administrator of the ChatSpike IRC Network
  
Reply With Quote