body>
<form name="wfwd">
<select name="wcode" onChange="disp(document.wfwd)">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
<?php
$id=$_get;
echo $id;
?>
</form>
</body>
<script>
function disp(Object)
{
var index=Object.wcode.selectedIndex;
var value=Object.wcode.options[index].value;
var item=Object.wcode.options[index].text;
document.wfwd.action='worksfwdtogovt.php?id=item';
document.wfwd.submit();
}//disp
can i return the value of item into the form using this javascript.
i want to echo the value of id in form.pls help me
Last edited by praseena : Yesterday at 11:13 am.