|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Using Javascript and PHP
Hi everybody,
I want a value calculated in Javascript to be used in PHP b'coz that value will act as an argument for the function defined in PHP. Can I do it If yes, how? One thing I want to tell is that that function is to be defined in PHP only and not i Javascript. In short can I use a value calculated variable of Javascript in PHP. It is urgent... Need help. Thanx VJ |
|
#2
|
||||
|
||||
|
javascript is client side and php is server side, so the short answer is no. the only way is for you to pass the variable into the page via GET i.e index.php?myvar=value then your php function can use it otherwise php is already run.
|
![]() |
| Viewing: ASP Free Forums > Other > ASP Free Lounge > Using Javascript and PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|