this is ther error i get Parse error: syntax error, unexpected T_STRING in /misc/34/000/087/930/6/system/frontpage/caravan-holiday-exchange.com/registration.php on line 41 this is line 40,41,42 // now we insert it into the database $insert = "INSERT INTO users (username, password) VALUES ('".$_POST['username']."', '".$_POST['pass']."')"; $add_member = mysql_query($insert); ?>
Replace this: // now we insert it into the database $insert = "INSERT INTO users (username, password) VALUES ('".$_POST['username']."', '".$_POST['pass']."')"; $add_member = mysql_query($insert); ?> Code (markup): with this: // now we insert it into the database $insert = "INSERT INTO users (username, password) VALUES ('".$_POST['username']."', '".$_POST['pass']."')"; $add_member = mysql_query($insert); ?> Code (markup):
Warning: Cannot modify header information - headers already sent by (output started at /misc/34/000/087/930/6/system/frontpage/caravan-holiday-exchange.com/login.php:1) in /misc/34/000/087/930/6/system/frontpage/caravan-holiday-exchange.com/login.php on line 87 Warning: Cannot modify header information - headers already sent by (output started at /misc/34/000/087/930/6/system/frontpage/caravan-holiday-exchange.com/login.php:1) in /misc/34/000/087/930/6/system/frontpage/caravan-holiday-exchange.com/login.php on line 88 Warning: Cannot modify header information - headers already sent by (output started at /misc/34/000/087/930/6/system/frontpage/caravan-holiday-exchange.com/login.php:1) in /misc/34/000/087/930/6/system/frontpage/caravan-holiday-exchange.com/login.php on line 91 these are the rrors now getting $hour = time() + 3600; setcookie(ID_my_site, $_POST['username'], $hour); setcookie(Key_my_site, $_POST['pass'], $hour); //then redirect them to the members area header("Location: members-area.php"); when i check database details have been inserted
add this to the top of your page, THE VERY TOP, BEFORE EVERYTHING. <?php ob_start(); ?> PHP: That should fix the header problem.
ok just about to give up on this project i thought it would be simple but every time i get a prob solved another pops up if any one in uk can help me i dont mind ringing them as it takes a while to get answers just email me your number or msn and a time and date and just may be we can sort it cheers Doug