PHP is being a ***** again >.< I started with 7 errors.... I've now cut it down to 3... (Im only just learning PHP, Much of it, as i need it in making my site, or improvising on HTML/Premade PHP) Warning: Cannot modify header information - headers already sent by (output started at /www/1111mb.com/u/g/n/ugnetwork/htdocs/index2.php:7) in /www/1111mb.com/u/g/n/ugnetwork/htdocs/index2.php on line 93 Warning: Cannot modify header information - headers already sent by (output started at /www/1111mb.com/u/g/n/ugnetwork/htdocs/index2.php:7) in /www/1111mb.com/u/g/n/ugnetwork/htdocs/index2.php on line 94 Warning: Cannot modify header information - headers already sent by (output started at /www/1111mb.com/u/g/n/ugnetwork/htdocs/index2.php:7) in /www/1111mb.com/u/g/n/ugnetwork/htdocs/index2.php on line 97 And heres line 87 - 104.... So much writing.. my brain hurts. Any ideas anyone? (BTW: I get this when i try to login after ive entered my details (username and pass)
not sure if this will work. i would prefer if you would post the whole script cause you might be duplicating variables, and are you connecting to your database and using query's, etc.?
Its because php has started to render the page and then you are trying to using cookies. There is this php code; ob_start() php.net link
Try removing the cookies and see if that helps in anyway. If it doesn't just make it so that it forces its way through.
Soo thats soo complicated in that link lol...... >.< You need to have the cookie saved inorder to acsess the members part, thats how I stop people just rewriting the URL to the next page, and I think it'll be needed too. Would, Once they've entered their login info they got redirected to a new page, that page saves the cookie then redirects them to the members area work? And if yeah, could anybody give me a little hint how to do that...
- http://www.php.net/manual/en/function.header.php Common stuff to know. Anyway, if you did/didn't make that code, there are some things you can/should change. For instances, unless you plan on allowing more then one member to have the same Username, then you can just change: Code: while($info = mysql_fetch_array( $check )) to Code: if($info = mysql_fetch_array( $check )) Merged Post:
I dont use that other page, I was just wondering... Im pretty new to PHP, and this was a premade code, man, half of it needed to be fixed to get the other ones fixed... Thanks, I get it a little btter, Ill read that whole link tomorrow and try to fix then.
if you have MSN, pm me it, and i will help you with the script over MSN. i am currently working on a script similar to yours for a class/experiment.
no. a entire member system, written from scratch with php and mysql. i am only about a month and a half working with real php instead of just includes, and echos, etc.