Re: php4 & javascript

From: Date: Tue, 20 Jun 2000 21:47:31 +0000
Subject: Re: php4 & javascript
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-2371@lists.php.net to get a copy of this message
In article <394911C3.154BD084@canaan.co.il>, miki@canaan.co.il (Ben-Nes Michael) wrote: > Hi > > Can i pass variable to proccess by php, using javascript with > onclick="$name='hello'" ? You can echo that out, and JavaScript will do its thing on the browser. Not sure what process you mean to send it to, other than the browser, but remember JavaScript is client-side, and PHP is living on the server. Oh... you mean pass it back to PHP? You'll have to force JavaScript to send another http request to another PHP script (the one that spit this page out is long gone), but it's *possible*. Slow as hell, but *possible*, and it won't be back to the first PHP script, but some other, which might be of no use to you. -- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)

« previous php.general (#2371) next »