When I type into textarea, and click the "submit button," the "javascript variable" that holds what the visitor typed is this:
document.form1.textarea.value
My question is: On that next page that appears, how can I store that Javascript variable in a PHP variable?
I mean, do I put the php stuff into my javascript tags? Nothing I try seems to work. Here is an example of what I tried:
<SCRIPT LANGUAGE="JavaScript">
<?php
$my_variable = "document.form1.textarea.value";
?>
</SCRIPT
but, of course, that doesn't work.
You may ask why I want to do this? Well, the reason is that after Javascript is used (I MUST use Javascript for programming reasons), I want PHP to store that variable into a mySQL database.