PHP and JavaScript
Posted: Mon Jun 24, 2002 9:50 am
I was make simple form for testing compatibility between php and javascript.
I tested it on this:
onclick - run javascript, form not submitted(it is running javascript), but i want to access to variables of this form in body of javascript in PHP. If this is real, then form will make more and more faster
<script language="JavaScript">
<!--
function dojs()
{
<?
// can I gain access to form variables without submitting???
?>
}
//-->
<form>
<input type="text" name="name">
<input type="button" onclick=dojs()">
</form>
I tested it on this:
onclick - run javascript, form not submitted(it is running javascript), but i want to access to variables of this form in body of javascript in PHP. If this is real, then form will make more and more faster
<script language="JavaScript">
<!--
function dojs()
{
<?
// can I gain access to form variables without submitting???
?>
}
//-->
<form>
<input type="text" name="name">
<input type="button" onclick=dojs()">
</form>