The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
...to pass a javascript variable into php?
|
|
#2
|
||||
|
||||
|
PHP Code:
|
|
#3
|
|||
|
|||
|
Quote:
Code:
<script type="Javascript">
var something;
something = "this";
</script>
|
|
#4
|
|||
|
|||
|
there you go
|
|
#5
|
||||
|
||||
|
Hmm good point I didnt think of that one.
Maybe try this [php] <script type="Javascript"> var something; something = "this"; <?php $phpvar="/?> something <?php "/ ?> </script> ?? |
|
#6
|
||||
|
||||
|
I don't think its possible since javascript is parsed after, by the browser. But what you could do is something like
PHP Code:
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|