Jump to content

bretx

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

bretx's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. i still dont get it though, this is retarded, i have no idea what to do, i havent been on the net in months, and i forgot how to do everything i knew before, and now i just cant remember..
  2. no i didn't very sorry. thank you for notifying me
  3. no sorry that didnt help any, thank you for trying to help me anyways i appreciate it.. i still get this warning.. [quote] Warning: Cannot modify header information - headers already sent by (output started at /home/rowly/public_html/bretx-designs/login.php:1) in /home/rowly/public_html/bretx-designs/login.php on line 190 Warning: Cannot modify header information - headers already sent by (output started at /home/rowly/public_html/bretx-designs/login.php:1) in /home/rowly/public_html/bretx-designs/login.php on line 191 [/quote]
  4. could someone help me please i keep getting header errors, and here they are.. [quote]Warning: Cannot modify header information - headers already sent by (output started at /home/rowly/public_html/bretx-designs/login.php:1) in /home/rowly/public_html/bretx-designs/login.php on line 192 Warning: Cannot modify header information - headers already sent by (output started at /home/rowly/public_html/bretx-designs/login.php:1) in /home/rowly/public_html/bretx-designs/login.php on line 193 Thank You! You will be redirected [/quote] your help would be most appreciated. my php snippet is below.. thank you.. [quote] <? oB_start(); // allows you to use cookies. include("config.php"); if (!$logged[username]) { if (!$_POST[login]) { echo(" <center> <form method=\"post\"> <b>username;</b> <input type=\"text\" name=\"username\" style=\"border: 1px solid adc3ce; font-family: tahoma; font-size: 8pt; color= black; background-color: transparent\"><br> <b>password;</b> <input type=\"password\" name=\"password\" style=\"border: 1px solid adc3ce; font-family: tahoma; font-size: 8pt; color= black; background-color: transparent\"><br> <input type=\"submit\" value=\"   login   \" name=\"login\" style=\"border: 1px solid adc3ce; font-family: tahoma; font-size: 8pt; color= black; background-color: transparent\"> </form> </center>"); } if ($_POST[login]) { // the form has been submitted. We continue... $username=$_POST['username']; $password = md5($_POST[password]); // the above lines set variables with the submitted information. $info = mysql_query("SELECT * FROM users WHERE username = '$username'") or die(mysql_error()); $data = mysql_fetch_array($info); if($data[password] != $password) { // the password was not the user's password! echo "Incorrect username or password!"; }else{ // the password was right! $query = mysql_query("SELECT * FROM users WHERE username = '$username'") or die(mysql_error()); $user = mysql_fetch_array($query); // gets the user's information [b]setcookie("id", $user[id], time()+3600);  /* expire in 1 hour */ setcookie("pass", $user[password], time()+3600, "/~rasmus/", ".bretx-designs.x1topsites.com", 1);[/b] // the above lines set 2 cookies. 1 with the user's id and another with his/her password. echo ("Thank You! You will be redirected"); // modify the above line...add in your site url instead of yoursite.com } } } else { // we now display the user controls. echo (" Welcome $logged[username] - <a href=\"editprofile.php\">Edit Profile - <a href=\"members.php\">Member List - <a href=\"logout.php\">Logout"); } ?>
  5. im bret.. im 16 an im male ye.. i dont know much as much as i would like to know either... which is why i came here.. i started when i was 13 but i guess i wasnt trying hard enough in the web-design world.. anyways yeh.. im teen
×
×
  • 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.