Re: PHP/MySQL with Javascript
| From: | Frank M. Kromann | Date: | Wed, 15 Jun 2005 21:12:43 +0000 |
| Subject: | Re: PHP/MySQL with Javascript | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-39683@lists.php.net to get a copy of this message | ||
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
>
>