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.


-----Original Message-----
From: Jason Wong [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 31, 2004 6:35 AM
Subject: Re: [PHP-DB] 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 ->
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
Search the list archives before you post
Defeat is worse than death because you have to live with defeat.
  -- Bill Musselman

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to