6/24/2011

PHP Enter on Text not submit button

<script type="text/javascript">
    function sendForm() {
        //alert ("sending data");
        getSave(document.formSave.DEP.value,document.formSave.barcode.value); จะให้มันส่งข้อมูลไปไหน
    }
</script>
<form name="formSave" action="javascript&#058;sendForm()">
    <TR>
         <TD align='right' calss='bg1'>ฝ่าย:&nbsp;&nbsp;</TD>
         <TD align='left' class='default'><!--%DEP_CODE%--></TD>
    </TR>
    <TR>
        <TD align='right' calss='bg1'>BarCode:&nbsp;&nbsp;</TD>
        <TD align='left' class='default'><input name="barcode" type="text"  size="20"></TD>
    </TR>
    <TR>
    <input type="button" value="-SAVE-" onclick=" onclick="sendForm()"></form>
</form>

No comments:

Post a Comment