PROTECTED]
Subject: Re: [PHP] Apache, html, php and global variables
My script is:
html
body
?php
session_start();
printf(P loggin on as );
printf (Puser name: );
printf ($HTTP_POST_VARS['User']);
printf (PPassword: );printf ($HTTP_POST_VARS['Password']);
printf (P
-
[EMAIL PROTECTED]
Sent: Sunday, June 02, 2002 3:31 PM
Subject: RE: [PHP] Apache, html, php and global variables
Did you read my reply at all? Call session_start() before any output
to
the browser.
---John Holmes...
-Original Message-
From: Peter Goggin [mailto:[EMAIL
]
To: 'Peter Goggin' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, June 01, 2002 2:04 PM
Subject: RE: [PHP] Apache, html, php and global variables
You still have to connect to a database every time a script is run,
whether it's loaded in a frame or run by itself. If you start a session
]; [EMAIL PROTECTED]
Subject: Re: [PHP] Apache, html, php and global variables
I am not clear what you mean by this. I have set session_start() on in
the
php script that logs onto the database initially. i then call a test
php
script from a button on the menu frame. This is the output it gives
Subject: RE: [PHP] Apache, html, php and global variables
Sessions use cookies, which use headers, which have to be sent before
any output. html is output. So, put session_start() before that.
?
Session_start();
...
?
html
body
...
Where are you putting dbauser and dbapassword
Goggin' [EMAIL PROTECTED]; php-
[EMAIL PROTECTED]
Sent: Sunday, June 02, 2002 12:09 AM
Subject: RE: [PHP] Apache, html, php and global variables
Sessions use cookies, which use headers, which have to be sent
before
any output. html is output. So, put session_start() before
On Sunday 02 June 2002 13:31, John Holmes wrote:
Did you read my reply at all? Call session_start() before any output to
the browser.
The errors I get are:
Warning: Cannot send session cookie - headers already sent by (output
started at c:\usr\www\my-domain\databaselogin.php:3) in
Thanks, well said.
John
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 02, 2002 2:10 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Apache, html, php and global variables
On Sunday 02 June 2002 13:31, John Holmes wrote:
Did you read my reply
On Saturday, June 1, 2002 at 2:42:40 AM, you wrote:
Is there any way of caryying the login information from one web page to the
next in global variables so that the username and password entered in the
login screen is available to all other web pages in the site or do I have to
ask the user
PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, June 01, 2002 11:56 AM
Subject: Re: [PHP] Apache, html, php and global variables
On Saturday, June 1, 2002 at 2:42:40 AM, you wrote:
Is there any way of caryying the login information from one web page to
the
next in global variables so
...
-Original Message-
From: Peter Goggin [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 31, 2002 11:12 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Apache, html, php and global variables
I am not certain how this helps me, since it appears the data is only
carried to pages called
11 matches
Mail list logo