I am using the require() function. - 1st require() includes the top portion of my page on every page.
- 2nd require puts the following code in the middle: <? require("fns.php"); session_start(); if (!filled_out($HTTP_POST_VARS)) { echo "You have not filled out the form completely. Please try again."; exit; } else { if ($new_passwd!=$new_passwd2) echo "Passwords entered were not the same. Not changed."; else if (strlen($new_passwd)>16 || strlen($new_passwd)<6) echo "New password must be between 6 and 16 characters. Try again."; else { // attempt update if (change_password($valid_user, $old_passwd, $new_passwd)) echo "Password changed."; else echo "Password could not be changed."; } } ?> - 3rd require() includes the top portion of my page on every page. Does this help you understand??? Thanks, Ben > > From: Adam Williams <[EMAIL PROTECTED]> > Date: 2002/11/12 Tue PM 05:26:09 EST > To: "Ben C." <[EMAIL PROTECTED]> > CC: <[EMAIL PROTECTED]> > Subject: Re: [PHP] Error Message > > are you using header() after you've already sent data to the browser (such > as printing something to the user)? > > Adam > > On Tue, 12 Nov 2002, Ben C. wrote: > > > I am receiving the following error on my change password form: > > > > Warning: Cannot send session cache limiter - headers already sent (output started >at /home/httpd/vhosts/localhost/httpdocs/order/change_psswd.php:14) in >/home/httpd/vhosts/localhost/httpdocs/order/change_psswd2.php on line 4 > > > > Does anyone have a clue as to why? > > > > Please help! > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php