RE: PHP & Javascript

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Actaully No , as Javascript has to run at Web Browser end and PHP has to run at Server Side , And more at matter javascript memory ( variable values ) cannot be shared with PHP memory ( variable values ) , If you want want to share the variable values or result values then you can do away with PHP-PEAR Extension JavaScript.



Nikhil.

-----Original Message-----
From: Jason Wong [mailto:php-db@xxxxxxxxxxxx]
Sent: Sunday, October 31, 2004 6:35 AM
To: php-db@xxxxxxxxxxxxx
Subject: Re:  PHP & Javascript


On Saturday 30 October 2004 12:33, balwantsingh wrote:

> can anybody guide me how to embed php script into javascript. 

You can't.

> actually i am 
> using a function in  javascript and want that when this fuctions is called
> than some values to be stored in php session so that the values can be
> displayed in next page.

You can pass values from client-side using Javascript either via the URL 
($_GET) or form ($_POST) or cookies ($_COOKIE).  You can't manipulate the 
session variables directly.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-db
------------------------------------------
/*
Defeat is worse than death because you have to live with defeat.
  -- Bill Musselman
*/

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux