A
Anonymous
Guest
I am having problem sending the value of the <input> of this page to another <input> in the form "vgetinfo" using the following JS. Can you check it and see hwere the problem is? Thanks
Code:
<?php
$i_vname='x20051010';
echo "
<html>
<head>
<script type='text/javascript'>
function SendVariable(theForm,i_vname) {
if (window.opener && !window.opener.closed) {
data = document.theForm.i_vname.value;
window.opener.document.vgetinfo.i_vdate.value = data;
window.close();
}
}
</script>
</head>
<title>Schedfind</title>
<LINK href='.\css\Stylesheet.css' rel='stylesheet' type='text/css'>
<body>
<form name='Schedfind' method='POST'>
<input type='button' value='2005-10-10' name='$i_vname' ondblclick='SendVariable(this,$i_vname)'>
</form>
</body>
</html>";
?>