User Profile

Collapse

Profile Sidebar

Collapse
ronolivar
ronolivar
Last Activity: Mar 2 '10, 11:51 AM
Joined: Feb 1 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ronolivar
    replied to Warning: Cannot modify header information
    in PHP
    Code:
    <?php
    
    $username=$_POST["UsernameBox"];
    $password=$_POST["PasswordBox"];
    $host="localhost";
    
    
       //error_reporting(0);  
    
    
    if(!($dbh=@mysql_connect($host,$username,$password)))
       { header('Location:index.html');
         //print "<a href=http://localhost/pms/index.html>Back to login.</a><br>";
    ...
    See more | Go to post

    Leave a comment:


  • ronolivar
    started a topic Warning: Cannot modify header information
    in PHP

    Warning: Cannot modify header information

    I looked all over the web, and i just cant find the answer.. how can i do this? I want that when the user inputs an invalid username or password my page would automatically redirect to the log.in page..

    a snippet of the problem area..

    Code:
    if(!($dbh=@mysql_connect($host,$username,$password)))
       { header('Location:index.html');
         //print "<a href=http://localhost/pms/index.html>Back to
    ...
    See more | Go to post
No activity results to display
Show More
Working...