passing PhP parameter to JavaScript function
| From: | HP-NewJersey,ex1) | Date: | Thu, 02 May 2002 16:13:52 +0000 |
| Subject: | passing PhP parameter to JavaScript function | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-95707@lists.php.net to get a copy of this message | ||
Hi guys,
From PhP, I want to call JavaScript and pass argument to it
For some reason when I do the following:
onClick=\"return lastCheck($maxa);\
and printout maxa in JavaScript, it says maxa is undefined....
maxa is defined in PhP form section. User enters value into a form which
name is maxa. Prior to submittal, I'd like to do smth with the value.
Any ideas why?
Thanks a lot!
-----------
Leon Zilber
HP Internet Operation R&D Lab
phone: 973.443.78.82
email: leon_zilber@hp.com