Je moet ingelogd zijn om te stemmen.
<html> <head> <title>Price check</title> </head> <body> <form id="pricecheckform" name="pricecheckform" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>"> <table width="75%"border="0"> <tr> <td>Amount</td> <td>Id</td> </tr> <tr> <td><input type="text" name="amount[]" /></td> <td><input type="text" name="id[]" /></td> </tr> <tr> <td><input type="text" name="amount[]" /></td> <td><input type="text" name="id[]" /></td> </tr> <tr> <td></td> <td><input name="calc" type="submit" value="Calculate" /></td> </tr> </table> </form> </body> </html>
<html><head><title>Price check</title></head><body><form id="pricecheckform" name="pricecheckform" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>"><table width="75%"border="0"> <tr> <td>Amount</td> <td>Id</td> </tr> <tr> <td><input type="text" name="amount[]" /></td> <td><input type="text" name="id[]" /></td> </tr> <tr> <td><input type="text" name="amount[]" /></td> <td><input type="text" name="id[]" /></td> </tr> <tr> <td></td> <td><input name="calc" type="submit" value="Calculate" /></td> </tr></table></form></body></html>
<html> <head> <title>Price check</title> <script language="javascript"> function addInput() { document.getElementById('addbox').innerHTML += '<tr><td><input type="text" name="amount[]" /></td><td><input type="text" name="id[]" /></td></tr>'; } </script> </head> <body> <form id="pricecheckform" name="pricecheckform" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>"> <table width="75%"border="0"> <tr> <td>Amount</td> <td>Id</td> </tr> <tr id="addbox"> <td><input type="text" name="amount[]" /></td> <td><input type="text" name="id[]" /></td> </tr> <tr> <td></td> <td><input name="calc" type="submit" value="Calculate" /></td> </tr> </table> </form> <input type="button" onclick="addInput()" name="add" value="Add input field" /> </body> </html>
<html><head><title>Price check</title><script language="javascript">function addInput() {document.getElementById('addbox').innerHTML += '<tr><td><input type="text" name="amount[]" /></td><td><input type="text" name="id[]" /></td></tr>';}</script></head><body><form id="pricecheckform" name="pricecheckform" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>"><table width="75%"border="0"> <tr> <td>Amount</td> <td>Id</td> </tr> <tr id="addbox"> <td><input type="text" name="amount[]" /></td> <td><input type="text" name="id[]" /></td> </tr> <tr> <td></td> <td><input name="calc" type="submit" value="Calculate" /></td> </tr></table></form><input type="button" onclick="addInput()" name="add" value="Add input field" /> </body></html>
<html> <head> <title>Price check</title> <script language="javascript"> function addInput() { document.getElementById('addbox').innerHTML += '<tr><td width="75%"><input type="text" name="amount[]" /></td><td><input type="text" name="id[]" /></td></tr>'; } </script> </head> <body> <form id="pricecheckform" name="pricecheckform" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>"> <table width="75%"border="0"> <tr> <td>Amount</td> <td>Id</td> </tr> <tr> <td><input type="text" name="amount[]" /></td> <td><input type="text" name="id[]" /></td> </tr> <tr> <td colspan="2"> <table id="addbox" width="100%"></table> </td> </tr> <tr> <td></td> <td><input name="calc" type="submit" value="Calculate" /></td> </tr> </table> </form> <input type="button" onclick="addInput()" name="add" value="Add input field" /> </body> </html>
<html><head><title>Price check</title><script language="javascript">function addInput() {document.getElementById('addbox').innerHTML += '<tr><td width="75%"><input type="text" name="amount[]" /></td><td><input type="text" name="id[]" /></td></tr>';}</script></head><body><form id="pricecheckform" name="pricecheckform" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>"><table width="75%"border="0"> <tr> <td>Amount</td> <td>Id</td> </tr> <tr> <td><input type="text" name="amount[]" /></td> <td><input type="text" name="id[]" /></td> </tr> <tr> <td colspan="2"> <table id="addbox" width="100%"></table> </td> </tr> <tr> <td></td> <td><input name="calc" type="submit" value="Calculate" /></td> </tr></table></form><input type="button" onclick="addInput()" name="add" value="Add input field" /> </body></html>