Hi Thomas,
I made some quick changes in your code you posted in the javscript forum.
Maybe it points you in the right direction?
My thought is to make an extra text field (type1).
With the sel-buttons you make a preselection and fill the text field. (the
return false; prevents the form to submit when you click)
Use the type1-value (instead of the sel-value) to handle your PHP-script.
Advantage is that you don't have to use the
document.dataform.sel[6].select(); because it do not work in IE4.
Here is the code (I didn't test it)
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
</HEAD>
<BODY>
<form name="dataform" action="machineshop.php3" method="get">
<table cellspacing="0" cellpadding="0" border="0" width="800">
<tr>
<td>
<img src="graphics/logo.gif" width="180" height="38" alt="">
<br>
<input type='submit' class="navigate" name='sel' value='ausgabe' onclick="PreType(this);return false;"><br>
<br>
<input type='submit' class="navigate" name='sel' value='rücknahme' onclick="PreType(this);return false;"><br>
<input type='submit' class="navigate" name='sel' value='geräte' onclick="PreType(this);return false;"><br>
<input type='submit' class="navigate" name='sel' value='bezogene' onclick="PreType(this);return false;"><br>
<input type='submit' class="navigate" name='sel' value='am lager' onclick="PreType(this);return false;"><br>
<input type='submit' class="navigate" name='sel' value='personen' onclick="PreType(this);return false;"><br>
<input type='submit' class="navigate" name='sel' value='verwaltung' onclick="PreType(this);return false;"><br>
<input type='submit' class="navigate" name='close' value='exit' onClick="shutdown();return false;">
<br><br>
<input type="text" name='type1'>
<input type='submit' class="navigate" name="sfdef" value="submit form definitely" onclick="document.dataform.submit();">
</td>
<td class="main">
<table class="checkout" cellspacing=5 cellpadding=5 border=1>
<tr>
<td>Gerat</td>
<td><input type='text' name='machine' value='' size='12' maxlength='3' tabindex="1"></td>
</tr>
<tr>
<td>Bezuger</td>
<td><input type='text' name='perso' value='' size='12' maxlength='3' tabindex="2"></td>
</tr>
<tr>
<td colspan="2">
<br>
<input type='submit' name='sel' value='checkout' tabindex="3" onClick="check();return false;">
</td>
</tr>
</table>
</form>
<script language='JavaScript' type='text/javascript'>
function PreType(Fvalue)
{
document.dataform.type1.value = Fvalue.value;
}
function check()
{
}
function shutdown()
{
}
//document.dataform.sel[6].select();
document.dataform.machine.focus();
</script>
</td>
</tr>
</table>
</BODY>
</HTML>
Hope this helps you in the right direction,
Erik
<!-- My sport:
Boomerang throwing !!
This year I will participate at the World Championships in Germany. (
!! Many Happy Returns !! -->