Re: [PHP] session variables

2004-06-01 Thread John W. Holmes
Bob Lockie wrote: $_SESSION['new_name'] = $_REQUEST['new_name']; Is not global. I printed out the value locally but it is not made into a session variable. Yes, it is. Providing you have sessions configured correctly and use session_start(). -- ---John Holmes... Amazon Wishlist:

Re: [PHP] session variables

2004-06-01 Thread Bob Lockie
On 06/01/04 22:12 John Nichel spoke: Bob Lockie wrote: $_SESSION['new_name'] = $_REQUEST['new_name']; Is not global. I printed out the value locally but it is not made into a session variable. Did you start the session before you set $_SESSION['new_name']? That was my problem. I reorganized and

[PHP] Session variables not recognized?

2004-05-25 Thread Brian Dunning
The first line of my file is session_start(); but whenever I try to set or reference $_SESSION['anything'] I get: Undefined variable: _SESSION What's up with that??? - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session variables not recognized?

2004-05-25 Thread Daniel Clark
Session handling was added in PHP 4.0. The first line of my file is session_start(); but whenever I try to set or reference $_SESSION['anything'] I get: Undefined variable: _SESSION What's up with that??? - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Session variables not recognized?

2004-05-25 Thread Brian Dunning
This is 4.3.2 and sessions are enabled. Session handling was added in PHP 4.0. The first line of my file is session_start(); but whenever I try to set or reference $_SESSION['anything'] I get: Undefined variable: _SESSION - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Session variables not recognized?

2004-05-25 Thread John Nichel
Brian Dunning wrote: This is 4.3.2 and sessions are enabled. Session handling was added in PHP 4.0. The first line of my file is session_start(); but whenever I try to set or reference $_SESSION['anything'] I get: Undefined variable: _SESSION - Brian Post some code. -- John C. Nichel

Re: [PHP] Session variables not working

2004-05-15 Thread Andrew Wood
If a page accesses the session variables does it need to explicity reset them as well because it would appear that an intermediate PHP script which also reads the 2 variables is destroying the session for no apparent reason On 14 May 2004, at 22:11, Brad Pauly wrote: On Fri, 2004-05-14 at

[PHP] Session variables not working

2004-05-14 Thread Andrew Wood
I'm trying to set the following two vars on one page then read their values on another like this: page1.php... ob_start(); session_start(); $_SESSION['member_id'] = $member_id; $_SESSION['password'] = $password; ob_end_flush(); page2.php... ob_start(); session_start(); $member_id =

Re: [PHP] Session variables not working

2004-05-14 Thread John W. Holmes
- Original Message - From: Andrew Wood [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 14, 2004 4:48 PM Subject: [PHP] Session variables not working I'm trying to set the following two vars on one page then read their values on another like this: [snip] But on page2.php

Re: [PHP] Session variables not working

2004-05-14 Thread Andrew Wood
PROTECTED] Sent: Friday, May 14, 2004 4:48 PM Subject: [PHP] Session variables not working I'm trying to set the following two vars on one page then read their values on another like this: [snip] But on page2.php the variables are null. Can anyone help me out with this. I must be doing something really

Re: [PHP] Session variables not working

2004-05-14 Thread John W. Holmes
From: Andrew Wood [EMAIL PROTECTED] Using a cookie which is shown in my browser as PHPSESSID Yes they're on the same domain but no there's nothing being passed accross the URL. Should there be? No, not normally. How are you getting from page 1 to page 2? page1.php... ob_start();

Re: [PHP] Session variables not working

2004-05-14 Thread Brad Pauly
On Fri, 2004-05-14 at 14:48, Andrew Wood wrote: I'm trying to set the following two vars on one page then read their values on another like this: page1.php... ob_start(); session_start(); $_SESSION['member_id'] = $member_id; $_SESSION['password'] = $password; ob_end_flush();

Re: [PHP] Session variables not working

2004-05-14 Thread Andrew Wood
Either typing the URL directly or by using a hyperlink. On 14 May 2004, at 22:09, John W. Holmes wrote: From: Andrew Wood [EMAIL PROTECTED] Using a cookie which is shown in my browser as PHPSESSID Yes they're on the same domain but no there's nothing being passed accross the URL. Should there

[PHP] session variables

2004-04-20 Thread Charles Collins
I have two test files running on a server, which is giving me a headache, due to the fact the session variables are not been maintained across the two pages. The server is running ... PHP Version = 4.0.5 register_globals = ON Session Support = Enabled session.auto_start = Off

RE: [PHP] session variables

2004-04-20 Thread Vincent DUPONT
I would do script 1 : $_SESSION['test'] = hello world; and in script2 : print($_SESSION['test']); vincent -Original Message- From: Charles Collins [mailto:[EMAIL PROTECTED] Sent: mardi 20 avril 2004 17:44 To: [EMAIL PROTECTED] Subject: [PHP] session variables I have two test files

Re: [PHP] session variables

2004-04-20 Thread Charles Collins
['test']); vincent -Original Message- From: Charles Collins [mailto:[EMAIL PROTECTED] Sent: mardi 20 avril 2004 17:44 To: [EMAIL PROTECTED] Subject: [PHP] session variables I have two test files running on a server, which is giving me a headache, due to the fact the session variables

Re: [PHP] session variables

2004-04-20 Thread Daniel Clark
hum. Try $_SESSION['test'] on page 2. I have two test files running on a server, which is giving me a headache, due to the fact the session variables are not been maintained across the two pages. The server is running ... PHP Version = 4.0.5 register_globals = ON Session Support =

Re: [PHP] session variables

2004-04-20 Thread Daniel Clark
:44 To: [EMAIL PROTECTED] Subject: [PHP] session variables I have two test files running on a server, which is giving me a headache, due to the fact the session variables are not been maintained across the two pages. The server is running ... PHP Version = 4.0.5 register_globals

Re: [PHP] session variables

2004-04-20 Thread Curt Zirzow
* Thus wrote Charles Collins ([EMAIL PROTECTED]): I have two test files running on a server, which is giving me a headache, due to the fact the session variables are not been maintained across the two pages. The server is running ... PHP Version = 4.0.5 register_globals = ON Session

Re: [PHP] session variables

2004-04-20 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): This looks like output from 'php -i'. The php module *can* have a different config, check these values from phpinfo() in a webpage in the same directory as your scripts with I fired my proofreader so I have to do this manually now :) s/ with/.

Re: [PHP] Session variables as array

2004-03-24 Thread John W. Holmes
Joseph Ross Lee wrote: Hello... Is there any example that I can look at that does a session variable as an array? thanks session_start(); $_SESSION['somekey'] = 'somevalue'; $_SESSION['someotherkey'] = array('one','two','three','four'); $_SESSION['yetanother'] =

[PHP] Session variables as array

2004-03-23 Thread Joseph Ross Lee
Hello... Is there any example that I can look at that does a session variable as an array? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] SESSION VARIABLES

2004-02-10 Thread Adam Bregenzer
On Tue, 2004-02-10 at 02:45, Ronald Ramos wrote: $_SESSION['username']; $_SESSION['password']; Close, try this instead: $_SESSION['username'] = $username; $_SESSION['password'] = $password; I edited page3.php but it still shows me nothing. It looks great, now you just need to clear up your

RE: [PHP] SESSION VARIABLES

2004-02-10 Thread Adam Bregenzer
On Tue, 2004-02-10 at 03:13, Ronald Ramos wrote: It Worked. Thanks Man! So I can use this to any other page? Awesome! You have access to the $_SESSION variables on any php page on the same server. Just make sure you call session_start() before you access the $_SESSION array. Let's say I

[PHP] SESSION VARIABLES

2004-02-09 Thread Ronald Ramos
Hi All, I've created 3 sample scripts, pls see below. My problem is that page3.php can't display the value $username and $password Or is it because it the variables were not importe to that page, that's why $username and $password has no value? If it is, how can I import it? Thank you -

Re: [PHP] SESSION VARIABLES

2004-02-09 Thread Adam Bregenzer
On Tue, 2004-02-10 at 00:43, Ronald Ramos wrote: Hi All, I've created 3 sample scripts, pls see below. My problem is that page3.php can't display the value $username and $password Or is it because it the variables were not importe to that page, that's why $username and $password has no

[PHP] session variables

2004-01-22 Thread Diana Castillo
If you store session variables , but the user has session cookies disabled, is there any way to recuperate those session variables? -- -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 Fax : 00-34-915228673 email: [EMAIL PROTECTED] Web :

Re: [PHP] session variables

2004-01-22 Thread Matt Matijevich
snip If you store session variables , but the user has session cookies disabled, is there any way to recuperate those session variables? /snip Yes, look at the session.use_trans_sid variable. http://www.php.net/session If cookies are disabled, php will pass the session id as a ur variable or

Re: [PHP] session variables

2004-01-22 Thread John Nichel
Diana Castillo wrote: If you store session variables , but the user has session cookies disabled, is there any way to recuperate those session variables? -- -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 Fax : 00-34-915228673 email:

Re: [PHP] session variables

2004-01-22 Thread Chris Shiflett
--- Diana Castillo [EMAIL PROTECTED] wrote: If you store session variables , but the user has session cookies disabled, is there any way to recuperate those session variables? Cookies come in two types: session cookies and persistent cookies. Session cookies have no set expiration date, so they

[PHP] Session Variables Disappear and Reappear

2003-12-29 Thread Jerry Kita
New to PHP and I've checked previous posts and haven't seen similar problem. Any ideas would be appreciated. Have encounted an odd problem. Using session variables to allow users to log in and out of my site. I've created a test system on my laptop. Apache 2.0.48, PHP 4.3.4, MySQL and Windows

[PHP] PHP Session Variables Not Being Set For Certain Browsers

2003-12-27 Thread Andy Higgins
Hello All, I have been racking my head over a problem where a large percentage of users are unable to log into my php site due to what seems to be a problem with setting php session variables on certain end user browsers (certain versions of AOL seem to be particularly problematic). Below

RE: [PHP] PHP Session Variables Not Being Set For Certain Browsers

2003-12-27 Thread Andras Kende
-Original Message- From: Andy Higgins [mailto:[EMAIL PROTECTED] Sent: Saturday, December 27, 2003 6:04 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP Session Variables Not Being Set For Certain Browsers Hello All, I have been racking my head over a problem where a large percentage of users

Re: [PHP] PHP Session Variables Not Being Set For Certain Browsers

2003-12-27 Thread Andy Higgins
[mailto:[EMAIL PROTECTED] Sent: Saturday, December 27, 2003 6:04 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP Session Variables Not Being Set For Certain Browsers Hello All, I have been racking my head over a problem where a large percentage of users are unable to log into my php site due

Re: [PHP] PHP Session Variables Not Being Set For Certain Browsers

2003-12-27 Thread Gerard Samuel
On Saturday 27 December 2003 07:03 am, Andy Higgins wrote: Hello All, I have been racking my head over a problem where a large percentage of users are unable to log into my php site due to what seems to be a problem with setting php session variables on certain end user browsers (certain

Re: [PHP] PHP Session Variables Not Being Set For Certain Browsers

2003-12-27 Thread Andy Higgins
PROTECTED] On Saturday 27 December 2003 07:03 am, Andy Higgins wrote: Hello All, I have been racking my head over a problem where a large percentage of users are unable to log into my php site due to what seems to be a problem with setting php session variables on certain end user browsers

RE: [PHP] PHP Session Variables Not Being Set For Certain Browsers

2003-12-27 Thread Mark Charette
-Original Message- From: Andy Higgins [mailto:[EMAIL PROTECTED] Can anyone confirm whether AOL (or any other ISPs for that matter) change a user's IP address as seen by the web server (for eample through a proxy) within the same session? It's been pointed out and confirmed many,

Re: [PHP] PHP Session Variables Not Being Set For Certain Browsers

2003-12-27 Thread Andy Higgins
Hi Mark, Thank you for confirming that for me. I am new to the list and did do a search though past messages but did not find this point (obvioulsy I did not look hard enough). Thanks again. Regards, Andy Mark Charette [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -Original

Re: [PHP] PHP Session Variables Not Being Set For Certain Browsers

2003-12-27 Thread Gerard Samuel
On Saturday 27 December 2003 10:54 am, Andy Higgins wrote: 1. At the time of login will the login code need to check if the clients browser accepts cookies and if not then append the SID as described? If so, do you perhaps have a sample piece of code that does this? No, php does this for you.

Re: [PHP] PHP Session Variables Not Being Set For Certain Browsers

2003-12-27 Thread Andy Higgins
Hi Gerard, Thank you for your assistance you have been of enormous help. Regards, Andy Gerard Samuel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Saturday 27 December 2003 10:54 am, Andy Higgins wrote: 1. At the time of login will the login code need to check if the clients

[PHP] session variables scope problem. HELP!

2003-11-13 Thread Jim Gates
I've spent a few hours trying to resolve a problem with session variables. The session variables are intended to ensure login and/or whether or not a user is an administrator with other permissions. My intent is to test for the variables, if not present, redirect to login page or deny access. It

RE: [PHP] session variables scope problem. HELP!

2003-11-13 Thread Johnson, Kirk
It seems that once a session is started and variables set, I can access the variables on the page on which they are set, but on subsequent pages via link or Header redirect the session variables are not set and cannot be accesses. Be sure you have session_start() at the top of *all*

[PHP] SOLVED RE: [PHP] SESSION variables losing data on WinXP?

2003-09-19 Thread Jami
In case anyone else runs into this problem, the way I solved it was by reinstalling php with the windows installer from php.net. I'm not exactly sure what the problem was, but reinstalling it this way solved the problem. Hope this helps someone else. Jami Moore LightSpark Digital Designs [EMAIL

[PHP] SESSION variables losing data on WinXP?

2003-09-17 Thread Jami
I'm working on a project, and up until recently was using my hosting account to do projects, but decided to update PHP on my comp to be able to work on projects locally. I'm running WindowsXP, PHP 4.3.2, Apache 1.3, and MySQL 3.23.53. The validation page is called on each page, but if I go to a

Re: [PHP] SESSION variables losing data on WinXP?

2003-09-17 Thread Larry_Li
] cc: Subject:[PHP] SESSION variables losing data on WinXP? I'm working on a project, and up until recently was using my hosting account to do projects, but decided to update PHP on my comp to be able to work on projects locally. I'm running WindowsXP, PHP 4.3.2, Apache

Re: [PHP] SESSION variables losing data on WinXP?

2003-09-17 Thread Larry_Li
Did you open register_globals = On in php.ini? Larry Li/CNTR/APPLIED [EMAIL PROTECTED] 09/17/2003 04:04 PM To: [EMAIL PROTECTED] cc: PHP General [EMAIL PROTECTED] Subject:Re: [PHP] SESSION variables losing data on WinXP? I believe all pages

RE: [PHP] SESSION variables losing data on WinXP?

2003-09-17 Thread Jami
Knew I forgot to mention something. No, register_globals are off. Using $_SESSION[] variables. I am logging in first. I log in fine, its when I try to go to another page via a link on the entry page that I get booted back to the login page. My scripts work fine on a Unix server, which is what I

Re: [PHP] SESSION variables losing data on WinXP?

2003-09-17 Thread Scott Fletcher
Speaking of your problem, you're using the header() function to exit the webpage to the login page. So, it all come down to the either one of these two or both of these two if(!isset($uname)) { if (mysql_num_rows($result) == 0) { Upon closer inspection on the script, it look like either

[PHP] STILL NOT SOLVED RE: [PHP] SESSION variables losing data on WinXP?

2003-09-17 Thread Jami
Scott, thanks for the suggestion, but my php.ini is the same as yours. And I still have the problem. Any idea why $_SESSION[] variables would loose data on my server type and not on another? Jami Moore LightSpark Digital Designs [EMAIL PROTECTED] http://www.lightsparkdigital.com/ -Original

Re: [PHP] Session Variables in a Class

2003-09-10 Thread micro brew
Thanks Curt, You were absolutely correct. Removing the session_register() lines before the $_SESSION[] fixed the problem. By mixing the two before, it actually would register the variable so I could later test for the registered session variable but it did not retain the value I assigned it.

Re: [PHP] Session Variables in a Class

2003-09-10 Thread CPT John W. Holmes
From: micro brew [EMAIL PROTECTED] Here's my class. I start the session in the constructor and in later methods attempt to register session variables. You can see I've tried a couple different methods but none of them maintain the session variable values. Any suggestions? Is

[PHP] Session Variables in a Class

2003-09-09 Thread micro brew
Hi everyone, I've been experimenting with sessions. I can make them work just fine in a normal PHP page. But when I create a class and try to define a session variable within a method in the class it won't work. I've tried setting the session variable directly ($_SESSION['name']='somevalue')

Re: [PHP] Session Variables in a Class

2003-09-09 Thread Marco Schuler
Am Die, 2003-09-09 um 10.19 schrieb micro brew: Hi everyone, I've been experimenting with sessions. I can make them work just fine in a normal PHP page. But when I create a class and try to define a session variable within a method in the class it won't work. I've tried setting the

Re: [PHP] Session Variables in a Class

2003-09-09 Thread CPT John W. Holmes
From: micro brew [EMAIL PROTECTED] I've been experimenting with sessions. I can make them work just fine in a normal PHP page. But when I create a class and try to define a session variable within a method in the class it won't work. I've tried setting the session variable directly

Re: [PHP] Session Variables in a Class

2003-09-09 Thread micro brew
Here's my class. I start the session in the constructor and in later methods attempt to register session variables. You can see I've tried a couple different methods but none of them maintain the session variable values. Any suggestions? Mike ?php class login { //This variable tells the

Re: [PHP] Session Variables in a Class

2003-09-09 Thread Curt Zirzow
* Thus wrote micro brew ([EMAIL PROTECTED]): Hi everyone, I've been experimenting with sessions. I can make them work just fine in a normal PHP page. But when I create a class and try to define a session variable within a method in the class it won't work. I've tried setting the session

Re: [PHP] Session Variables in a Class

2003-09-09 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): * Thus wrote micro brew ([EMAIL PROTECTED]): Hi everyone, I've been experimenting with sessions. I can make them work just fine in a normal PHP page. But when I create a class and try to define a session variable within a method in the

[PHP] session variables

2003-09-01 Thread Diana Castillo
I am having a weird problem, when I close all my browser windows and restart my application, the session variable which I set comes back suddenly, but only when I call a certain class . As far as I know the session variables should disappear when I close the browser. Why would they suddenly come

RE: [PHP] session variables

2003-09-01 Thread Binay Agarwal
Check out session.cookie_lifetime .. if lifetime =0 then session should disappear once you close the browser else it will stay the time specified in lifetime options. Hope this helps and let me know. Binay Diana Castillo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am having a

[PHP] session variables

2003-08-29 Thread Diana Castillo
I am having a weird problem, when I close all my browser windows and restart my application, the session variable which I set comes back suddenly, but only when I call a certain class . -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Session Variables and Posting

2003-04-04 Thread Van Andel, Robbert
Is there a way that I can prevent session variables getting values from query strings. I want them to receive values only from posted forms. Robbert van Andel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session Variables and Posting

2003-04-04 Thread Kevin Stone
- Original Message - From: Van Andel, Robbert [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 04, 2003 4:00 PM Subject: [PHP] Session Variables and Posting Is there a way that I can prevent session variables getting values from query strings. I want them to receive values

Re: [PHP] Session Variables and Posting

2003-04-04 Thread Leif K-Brooks
http://www.php.net/manual/en/security.registerglobals.php Van Andel, Robbert wrote: Is there a way that I can prevent session variables getting values from query strings. I want them to receive values only from posted forms. Robbert van Andel -- The above message is encrypted with double

[PHP] session variables

2003-03-19 Thread Pag
HI, Am trying to give controlled access to who logs in to my site. Have a quick doubt: I register a session var named $tu (value is taken from the DB) when a user logs in, how can i reference to that var? I mean, if i want to check its value, if i do print($tu);, it doesnt seem to work.

RE: [PHP] session variables

2003-03-19 Thread daniel
u have to start the session first then check with $_SESSION['tu']; = Original Message From Pag [EMAIL PROTECTED] = HI, Am trying to give controlled access to who logs in to my site. Have a quick doubt: I register a session var named $tu (value is taken from the DB)

[PHP] session variables

2003-03-13 Thread Shaun van den Berg
Hi, Is it wise or wrong to put long strings into a session variable ? Is it better to keep the values short ? Thanks Shaun -- Novtel Consulting Tel: +27 21 9822373 Fax: +27 21 9815846 Please visit our website: www.novtel.co.za -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] session variables

2003-03-13 Thread John W. Holmes
Is it wise or wrong to put long strings into a session variable ? Is it better to keep the values short ? The more data you put into your session, the more data that has to be read and written to a file on your server each time someone accesses a page. More data is going to slow things down.

Re: [PHP] Session Variables

2003-01-27 Thread Leif K-Brooks
$HTTP_SESSION_VARS and $_SESSION don't magically update when you add a session variable with session_register(). Jed R. Brubaker wrote: I have a quirky problem that should be a breeze for someone who is smarter than I. I have a script where I am registering a HTML form post variable as a

[PHP] Session Variables

2003-01-26 Thread Jed R. Brubaker
I have a quirky problem that should be a breeze for someone who is smarter than I. I have a script where I am registering a HTML form post variable as a session variable and then echo it. In the real script I use it in a MySQL query, but for the sake of this post, here is the script: $user1 =

Re: [PHP] session variables

2002-12-18 Thread Antti
Justin French wrote: 1. the opposite of session_register('varname') is session_unregister('varname') NOT unset($varname) 2. Are you on PHP = 4.1 ?? If so, move away from things like: ? session_start(); $variable = 'foo'; session_register('variable'); session_unregister('variable') ? and

Re: [PHP] session variables

2002-12-18 Thread Antti
Justin French wrote: 1. the opposite of session_register('varname') is session_unregister('varname') NOT unset($varname) 2. Are you on PHP = 4.1 ?? If so, move away from things like: ? session_start(); $variable = 'foo'; session_register('variable'); session_unregister('variable') ? and

Re: [PHP] session variables

2002-12-18 Thread Justin French
on 19/12/02 2:25 AM, Antti ([EMAIL PROTECTED]) wrote: Neather this seem to work $_SESSION['some_variable']=$variable; nor this: $_SESSION['today']= date('Y-m-d h:m:s'); antti What do you mean don't work... what are you trying to do? page1.php ? session_start(); $_SESSION['today']=

[PHP] session variables

2002-12-17 Thread Antti
How can I change the values of session variables (session_register('variable');) in a session. Do I just unset($variable); and do session_register() again and give it a new value. I tried this and it seems that it doesn't work. Antti -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] session variables

2002-12-17 Thread Justin French
1. the opposite of session_register('varname') is session_unregister('varname') NOT unset($varname) 2. Are you on PHP = 4.1 ?? If so, move away from things like: ? session_start(); $variable = 'foo'; session_register('variable'); session_unregister('variable') ? and into: ? session_start();

[PHP] Session Variables Not Being Passed

2002-12-01 Thread Jami
The code that I have is as such: //header.php if(isset($_POST['login'])){ $checkuser = mysql_query(SELECT * FROM mainacct WHERE username = '{$_POST['username']}' AND password = '{$_POST['password']}' , $connection) or die (Couldn't find user.); if (mysql_num_rows($checkuser) 0){ while

RE: [PHP] Session Variables Not Being Passed

2002-12-01 Thread John W. Holmes
-Original Message- From: Jami [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 01, 2002 3:53 AM To: PHP General Subject: [PHP] Session Variables Not Being Passed The code that I have is as such: //header.php if(isset($_POST['login'])){ $checkuser = mysql_query(SELECT

[PHP] Session variables

2002-07-08 Thread Steve Fitzgerald
I am designing a form using sessions in which the user inputs their details on page 1 and after submitting they are directed to page 2 for confirmation. They then have the option of editing their input (ie they are returned to page 1) where their previous input is reflected in the form fields by

RE: [PHP] Session variables

2002-07-08 Thread Rudolf Visagie
PROTECTED] Tel: 011 2655478 Cell: 082 895 1598 -Original Message- From: Steve Fitzgerald [mailto:[EMAIL PROTECTED]] Sent: Monday, July 08, 2002 1:36 PM To: [EMAIL PROTECTED] Subject: [PHP] Session variables I am designing a form using sessions in which the user inputs their details

Re: [PHP] Session variables

2002-07-08 Thread Justin French
SELECT name=day OPTION value=please select ? if(empty($day)) { echo selected; } ? OPTION value=monday ? if($day == monday) { echo selected; } ? OPTION value=tuesday ? if($day == tuesday) { echo selected; } ? OPTION value=wednesday ? if($day == wednesday) { echo selected; } ?

Re: [PHP] Session variables

2002-07-08 Thread Steve Fitzgerald
Thanks Justin, your solution is spot-on! Regards Steve Justin French wrote: SELECT name=day OPTION value=please select ? if(empty($day)) { echo selected; } ? OPTION value=monday ? if($day == monday) { echo selected; } ? OPTION value=tuesday ? if($day == tuesday) { echo

Re[2]: [PHP] Session variables

2002-07-08 Thread Michal Dvoracek
SELECT name=day OPTION value=please select ? if(empty($day)) { echo selected; } ? OPTION value=monday ? if($day == monday) { echo selected; } ? OPTION value=tuesday ? if($day == tuesday) { echo selected; } ? OPTION value=wednesday ? if($day == wednesday) { echo selected; }

Re: Re[2]: [PHP] Session variables

2002-07-08 Thread BB
and to bring it up another level: OPTION value=please select?=((empty($day)) ? ' selected' : ''); ? OPTION value=monday?=(($day == 'monday') ? ' selected' : '');? :oP Michal Dvoracek [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... SELECT name=day OPTION

[PHP] session variables in OOP....

2002-06-14 Thread Wilbert Enserink
Hi all, I'm busy building a site which uses OOP. Several classes are used to constuct different sections of the final page to be displayed. The overall class is called class.basepage.php This is the page which outputs HTML and calls other classes to construct other parts of the page. Now I

Re: [PHP] session variables in OOP....

2002-06-14 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Wilbert Enserink declared I hope you understand my problem and have some tips for me. Below is some code snippets I'm using: Actually it's a little tricky to understand ;-) Have you considered output buffering? - -- Nick Wilson

Re: [PHP] session variables in OOP....

2002-06-14 Thread W. Enserink
();//show the buffer ob_end_flush() ;//clear the buffer - Original Message - From: Nick Wilson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 14, 2002 1:59 PM Subject: Re: [PHP] session variables in OOP -BEGIN PGP SIGNED MESSAGE

Re: [PHP] session variables in OOP....

2002-06-14 Thread 1LT John W. Holmes
, whatever, at any point. Or you can use output buffering... ---John Holmes... - Original Message - From: Wilbert Enserink [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 14, 2002 7:44 AM Subject: [PHP] session variables in OOP Hi all, I'm busy building a site which uses

Re: [PHP] session variables in OOP....

2002-06-14 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then W. Enserink declared Nick: thx for the tip, it removed the error, and might further be a good idea: except: do you know if I can declare session variables and use them in between the output buffer statements like this: (i tried

[PHP] session variables and classes?

2002-05-01 Thread John Ngo
does anyone know if a session variable set within a class is accessible outside the class and by other pages? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] session variables and classes?

2002-05-01 Thread Jay Blanchard
[snip] does anyone know if a session variable set within a class is accessible outside the class and by other pages? [/snip] I have not tested this, but I do use sessions quite a bit. All session variables are registered as global variables and therefore should be available to other processes

[PHP] Session Variables

2002-04-16 Thread Phil Powell
I understand the concept of session variables, so I want to know the best methodology of approaching this: 1) HTML redirect to PHP page 2) PHP page looks for session a) If found, show some stuff b) If not found, prompt user for username and password 3) If no session, prompt user for username

RE: [PHP] Session Variables

2002-04-16 Thread .ben
or is the reply-to on this list a little odd? -Original Message- From: Phil Powell [mailto:[EMAIL PROTECTED]] Sent: 16 April 2002 22:50 To: [EMAIL PROTECTED] Subject: [PHP] Session Variables I understand the concept of session variables, so I want to know the best methodology of approaching

[PHP] session variables and unset

2002-04-10 Thread Valdas Andrulis
Hello, I have 3 scripts: ## i2.php ?php session_start(); $counter = 1; session_register(counter); header(Location: /i.php); ? ## i.php ?php session_start(); $counter = 0; ### uncomment this to see the difference # session_unregister(counter); session_register(counter); unset($counter);

[PHP] session variables

2002-04-04 Thread Lee, Ford
I seem to have configuration problemsi just can't seem to get session variables written to in files under win2000, NTFS w/ Apache and PHP..i've already done everything from session_start() on every page to making var globalanybody can help?? thanksbtw, i got the same system on a

Re: [PHP] session variables

2002-04-04 Thread Wolfram Kriesing
On Thursday 04 April 2002 19:15, Lee, Ford wrote: I seem to have configuration problemsi just can't seem to get session variables written to in files under win2000, NTFS w/ Apache and PHP..i've already done everything from session_start() on every page to making var globalanybody

RE: [PHP] session variables

2002-04-04 Thread Lee, Ford
, Ford; [EMAIL PROTECTED] Subject: Re: [PHP] session variables On Thursday 04 April 2002 19:15, Lee, Ford wrote: I seem to have configuration problemsi just can't seem to get session variables written to in files under win2000, NTFS w/ Apache and PHP..i've already done everything from

RE: [PHP] session variables

2002-04-04 Thread Lee, Ford
AND it still doesn't work!!! Anyone who used 4.2.0RC1 came across this problem and made it work? -Original Message- From: SHEETS,JASON (Non-HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 12:43 PM To: Lee, Ford Subject: RE: [PHP] session variables This isn't limited

RE: [PHP] session variables

2002-04-04 Thread heinisch
At 04.04.2002 13:18, you wrote: Apparently under the bug report database for bug number 16043, my exactly problem was described. According to the PHP team, this windows/apache1.3.23/php4.1.2 session not writing to file bug has been fixed in the 4.2.0RC1 binaries. I've patched my php4apache.dll

[PHP] Session Variables

2002-03-25 Thread Chad Gilmer
Hi There, I am a beginner to PHP and I am tring to use session variables on my site. I am trying to use Session Variables in PHP on the iPLANIT.tv site When I use the following code: ?php $ses_counter++; session_register(ses_counter); ? I get the following error Warning: Cannot send

RE: [PHP] Session Variables

2002-03-25 Thread Rick Emery
it means you've already output some HTML or a blank line -Original Message- From: Chad Gilmer [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 12:19 PM To: [EMAIL PROTECTED] Subject: [PHP] Session Variables Hi There, I am a beginner to PHP and I am tring to use session

[PHP] session variables in functions....

2001-11-20 Thread wim van houts
Somebody knows why I cannot reach the $HTTP_SESSION_VARS in a function For example, why does this not output the en-US string three times: ? session_register(LangID); $HTTP_SESSION_VARS[LangID] = en-US; echo($HTTP_SESSION_VARS[LangID]); echo(**); function CurrentLang(){

<    1   2   3   >