RE: [PHP-DB] How to redirect after a valid login

2004-03-15 Thread Ford, Mike [LSS]
On 14 March 2004 02:14, Benjamin wrote: What kind of error does it give you? Because in the snippet you gave us you wrote include mainmenu.php; // Which gives me an error ! And that should give you an error because it should be include( mainmenu.php ); //note parenthesies Nope.

RE: [PHP-DB] How to redirect after a valid login

2004-03-15 Thread Larry Sandwick
:14 PM To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] How to redirect after a valid login What kind of error does it give you? Because in the snippet you gave us you wrote include mainmenu.php; // Which gives me an error ! And that should give you an error because it should be include

Re: [PHP-DB] How to redirect after a valid login

2004-03-15 Thread Bruno Ferreira
Larry Sandwick wrote: Here is the error I get when I use the include below: include MainMenu.php; Fatal error: Cannot redeclare class db in /tmp/disk/home/webmaster/Files/WWW/pearDB/DB.php on line 211 // Larry Seems that MainMenu.php (or a file included by it) re-includes the DB.php

Re: [PHP-DB] How to redirect after a valid login

2004-03-15 Thread Paul Burney
on 2004/03/15 15:39, Larry Sandwick at [EMAIL PROTECTED] made the following allegation: Here is the error I get when I use the include below: include MainMenu.php; Fatal error: Cannot redeclare class db in /tmp/disk/home/webmaster/Files/WWW/pearDB/DB.php on line 211 As someone else

Re: [PHP-DB] How to redirect after a valid login

2004-03-13 Thread Benjamin
What kind of error does it give you? Because in the snippet you gave us you wrote include mainmenu.php; // Which gives me an error ! And that should give you an error because it should be include( mainmenu.php ); //note parenthesies I have done what you want to do before like so if(

Re: [PHP-DB] How to redirect after a valid login

2004-03-12 Thread Larry E . Ullman
Is there a way that after a execution of a Login script and validation of login from a MySql database to automatically redirected to run another script ? Use PHP's header() function. See the manual for syntax. Larry -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP-DB] How to redirect after a valid login

2004-03-12 Thread Larry Sandwick
To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] How to redirect after a valid login Is there a way that after a execution of a Login script and validation of login from a MySql database to automatically redirected to run another script ? Use PHP's header() function. See

RE: [PHP-DB] How to redirect after a valid login

2004-03-12 Thread Paul Miller
Message- From: Larry Sandwick [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 2:25 PM To: [EMAIL PROTECTED] Subject: RE: [PHP-DB] How to redirect after a valid login What is considered to be the headers() information When I use the header() functions, I get an error stating that I

Re: [PHP-DB] How to redirect after a valid login

2004-03-12 Thread Brent Baisley
You can do a redirect at any point in your code as long as you haven't sent anything to the browser yet. You can run 10,000 lines of PHP code and do 1,000 queries and still send a redirect to the browser. In a nut shell, have no echo statement before your redirect. On Mar 12, 2004, at 3:02

RE: [PHP-DB] How to redirect after a valid login

2004-03-12 Thread Hutchins, Richard
] Sent: Friday, March 12, 2004 4:12 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] How to redirect after a valid login You can do a redirect at any point in your code as long as you haven't sent anything to the browser yet. You can run 10,000 lines of PHP code