Hi this is day1 of my php education, and I'm running into problems early. I'm trying a simple redirect based on correct entry of a password. I checked a few sources and my code seems ok, but...
first my html form...
and here is my success.phpCode:<form action="success.php" method="post"> Password: <input type="password" name="password"> <input type="submit" /> </form>
when I enter the correct password, I get...Code:<?php $pwd = $_POST["password"]; if( $pwd == "123" ) { header( "Location: success.htm" ); } else { echo "nyeh"; } ?>
Warning: Cannot modify header information - headers already sent by (output started at /.../.../success.php:in /.../.../.../success.php on line 13


LinkBack URL
About LinkBacks
in /.../.../.../success.php on line 13
Reply With Quote

icon below! (this is even better than "liking" a post)
