[thelist] getting a JS variable into PHP

Tom Dell'Aringa pixelmech at yahoo.com
Sat Dec 14 12:24:09 CST 2002


heyo,

I need to get a JavaScript variable value into a php variable. I have
something like this:

<some JS>
var name = bob;
</js>

This is at the end of a function. My first thought was to do this:

<? $phpVariable = ?>name<? ; ?>

But I think it will choke at the end of the first delimter because
its a statement that is not closed by a semicolon..

anyone?

Tom

=====
var me = tom.pixelmech.webDeveloper();

http://www.pixelmech.com/
http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



More information about the thelist mailing list