Re: [PHP-DB] Sharing variable values among PHP files

2003-04-01 Thread Ronan Chilvers
Coments inline... snip On 01 Apr,2003 at 10:04 Mustafa Ocak wrote: You can store the value in a session variable session_start(); if (isset($_HTTP_SESSION_VARS['your_variable_name'])) { /snip Rather than using isset() you may need to use session_is_registered(). This is specifically for

Re: [PHP-DB] Sharing variable values among PHP files

2003-04-01 Thread Leif K-Brooks
Please, please, PLEASE don't give advice! If you don't know the answer, DON'T COMMENT! The method you posted is for register_gkobals on, which it won'tr always (and shouldn't be)! Ronan Chilvers wrote: Coments inline... snip On 01 Apr,2003 at 10:04 Mustafa Ocak wrote: You can store the

Re: [PHP-DB] Sharing variable values among PHP files

2003-04-01 Thread Ronan Chilvers
Hi Leif On 01 Apr,2003 at 3:07 Leif K-Brooks wrote: snip Please, please, PLEASE don't give advice! If you don't know the answer, DON'T COMMENT! The method you posted is for register_gkobals on, which it won'tr always (and shouldn't be)! /snip No need to be rude ... its very easy to

Re: [PHP-DB] Sharing variable values among PHP files

2003-04-01 Thread Leston Drake
For us novices, can you please share how you would do this with register_globals off? At 01:07 AM 4/1/2003, you wrote: The method you posted is for register_gkobals on, which it won'tr always (and shouldn't be)! Ronan Chilvers wrote: Coments inline... snip On 01 Apr,2003 at 10:04 Mustafa

Re: [PHP-DB] Sharing variable values among PHP files

2003-04-01 Thread Ronan Chilvers
Hi Leston In case Leif, doesn't get back to you, here's a way to do it (inline). Similar to what Mustafa has already posted:- On 01 Apr,2003 at 8:35 Leston Drake wrote: snip For us novices, can you please share how you would do this with register_globals off? /snip snip ?php // need

Re: [PHP-DB] Sharing variable values among PHP files

2003-04-01 Thread Leif K-Brooks
The method posted, using isset(). Leston Drake wrote: For us novices, can you please share how you would do this with register_globals off? At 01:07 AM 4/1/2003, you wrote: The method you posted is for register_gkobals on, which it won'tr always (and shouldn't be)! Ronan Chilvers wrote:

[PHP-DB] Sharing variable values among PHP files

2003-03-31 Thread Alexa Kirk
Does anyone know how to take a variable containing POST data from a form and use this value in another PHP file? I need to take a username from one PHP file and use it in a couple of other PHP files later when adding to a database. Thank you, Alexa Kirk

RE: [PHP-DB] Sharing variable values among PHP files

2003-03-31 Thread Jennifer Goodie
You could set a cookie containing the value on the first page and access it on the others. -Original Message- From: Alexa Kirk [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 6:35 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [PHP-DB] Sharing variable values among

Re: [PHP-DB] Sharing variable values among PHP files

2003-03-31 Thread Mustafa Ocak
pages. HTH Mustafa - Original Message - From: Alexa Kirk [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 5:35 AM Subject: [PHP-DB] Sharing variable values among PHP files Does anyone know how to take a variable containing POST data from