Re: [PHP-DB] PHP/MySQL with Javascript

2005-06-15 Thread Frank M. Kromann
You can have PHP generate a small javascript section where you define the
variables or you can use cookies.

- Frank

 Hi there everyone,
 
  
 
 Just a quick question, I have a login system that stores whether you
are
 logged in or not with a PHP Session.  However, I need it so when people
 submit a form to add an item to their cart that Javascript can pickup
the
 PHP Value of whether people are logged in or not.  I don't really need
code
 as I don't want to take anyones time up, but if someone could point me
in
 the right direction of how I can use PHP Values in Javascript I would
REALLY
 appreciate it.
 
  
 
 Chris
 
 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DB] PHP/MySQL with Javascript

2005-06-15 Thread Bastien Koert

you can supply the value to js as a hidden variable in the form

bastien



From: Chris Payne [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: [PHP-DB] PHP/MySQL with Javascript
Date: Wed, 15 Jun 2005 16:55:32 -0400

Hi there everyone,



Just a quick question, I have a login system that stores whether you are
logged in or not with a PHP Session.  However, I need it so when people
submit a form to add an item to their cart that Javascript can pickup the
PHP Value of whether people are logged in or not.  I don't really need code
as I don't want to take anyones time up, but if someone could point me in
the right direction of how I can use PHP Values in Javascript I would 
REALLY

appreciate it.



Chris



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php