[FONT="Comic Sans MS"]can i convert a javascript variable in to a php variable..???[/FONT]
javascript variable
Generally, no, since JavaScript runs on the client side after PHP is already done with the page on the server side and has sent it off to the browser. The only way PHP would "see" a JavaScript variable is if something on the client side transmits a request to a PHP file on the server, such as a form submission or an AJAX request.
this is my code
<input name="orginfo" type="submit" id="orginfo" value="<?php $count = $count+1 ; $idarray[$count] = $vals[0];?>" onclick="call(<?php echo $count ?>)"/>
here i am sending a php variable in to javascript function. i need to convert that variable in to a php variable.
noway to work.???
please dear...
Learn the difference between client side and server side scripting language...
diff between HTML, JS , and PHP..
how to integrate them etc etc...
You will then have a - cool exp...
FYI, I saw in the coding samples where you can capture javascript variables as PHP variables. Try looking at http://www.phpbuilder.com/snippet/detail.php?type=snippet&id=1098
okie.. friends.. i understood.... thanks
a v vishnu