View Single Post
07-01-2007, 07:41 PM
#3
Choco is offline Choco
Status: Member
Join date: Jul 2007
Location: USA
Expertise:
Software:
 
Posts: 240
iTrader: 2 / 100%
 

Choco is on a distinguished road

Send a message via MSN to Choco

  Old

You need to pass a javascript variable to a php function?
You could do this:
<script type="text/javascript">
var c="this is my variable";
document.write("<script type='text/javascript' src='myphpfile.php?c="+c+"'></s"+"cript>");
</script>

Then, in your php file:
$c=$_GET['c'];

And then you play with your variable =D