|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi, i am trying to get a value(variable setted in javascript) and during server side process, i need to use php the process that value... can i do that...
|
|
#2
|
|||
|
|||
|
I had a hell of a time with the same prob. In the end, I just passed the variable in th e url. You can also use cookies.
------------------ -Gabe "Save trees, eat beaver." "y!php3++?" |
|
#3
|
|||
|
|||
|
Why not make a php function to write that section of your javascript?
<script language="JavaScript"> <? echo("var myVar = $someVar;"); >? |
|
#4
|
|||
|
|||
|
The problem relies in the fact that php gets parsed and writes all the hard code <I>then</I> JavaScript takes control on the client side. The only way for this to work would be from more than one page so php can get a value.
|
|
#5
|
|||
|
|||
|
I javaScript, how to pass a variable value to the url like
www.testing.com/my?option1=yes,option2=no,option3=yes..... |
![]() |
| Viewing: Dev Shed Forums > Web Design > JavaScript Development > Javascript value to php code... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|