head JS function:
- Code: Select all
function doSubmit(){
document.OptSelVal.UpOption.value.submit();
body:
- Code: Select all
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<form action="<?php echo $SCRIPT_NAME; ?>" method="post" enctype="application/x-www-form-urlencoded" name="OptSelVal" id="formA">
Date Article<br />
10-13-07 Article 1<br />
09-14-07 Article 2<br />
<select name = "UpOption" size="5" class="mine">
<?php
$query = "select * from articles;";
$result=mysql_query($query);
?>
<?php
while($articlerow=mysql_fetch_assoc($result))
{
echo " <option value='". $articlerow['primindex'] . "'>". $articlerow['Title'] ."</</option>";
}
?>
</select>
</td>
</tr>
<tr>
<td><a href="javascript:doSubmit()" onMouseUp="switchImage('Retrieve',0)" onmouseout = "switchImage('Retrieve',0)" onmouseover = "switchImage('Retrieve',1)" onmousedown = "switchImage('Retrieve',2)"><img name="Retrieve" src="images/editBtn_up.jpg" border="0"/></a>
</form>
</tr>
</table>
If I use a regular input button everything works fine. But when i try a rollover button using the JS function above nothing seems to happen when submitted.



