当前位置: 动力学知识库 > 问答 > 编程问答 >

parent form submit not working

问题描述:

i have two forms, ie form within a form. The inner form is working well, but when i click the main form ie outer form.. it gives null result or the output is nothing

herez my code

<form method="get" action="add.php?id=">

<ul><h2>Credit Card Details</h2>

<form action="">

<li><input type=text name=cardno maxlength=19 ONKEYPRESS="var keyCode = event.which ? event.which : event.keyCode;

return keyCode >= '0'.charCodeAt() && keyCode <= '9'.charCodeAt()" placeholder="Enter Card Number"></li>

<li><input type="text" name="pin" placeholder="Card Pin Code"/></li>

<li><input type="text" name="expdate" placeholder="Expiry Date on Card"/></li>

<li><input type="text" name="cardholder" placeholder="Name On Card"/></li>

<li><input type="text" name="cardrslt" readonly="readonly" placeholder="Right/Wrong Card"></li>

<li><input type="text" name="cardtype" readonly="readonly" placeholder="Card Type"></li>

<li> <input type="button" value="CHECK IT" onClick="Mod10(document.forms[0].cardno.value)" class="Button"></li>

<li><input type="button" value="CLEAR IT" onClick="ClearC()" class="Button"></li>

</form>

</ul>

<input type="submit" value="OK" class="myButton" />

<input type="reset" value="Clear" class="myButton" />

</form>

分享给朋友:
您可能感兴趣的文章:
随机阅读: