I have a tool where I am trying to insert the details in the database. Initially during the submission of the form for the first time, entire data is getting inserted into the database but when I try click on edit button and try adding the details, the data is not getting inserted.
The create.php contains the form wherein all the details needs to be filled in, on click of submit the data redirects to another page “generate.php” where the actual queries are written. Now when I click on the “Amend” buttonit redirects to “edit.php” file where again the form details are submitted and on submit it redirects to “generate.php”. But the data from edit.php file is not getting inserted.
create.php
<form name="MainBTA" id="MainBTA" onsubmit="return validateBTAOutsiderForm()" method="POST" action="bta_generate_outsider_request.php?bta_oid=<?php echo $bta_oid; ?>" align="center">
<table align="center" style="width:880px" border="0">.......</table>
<table width="968px" border="0" cellspacing="0" cellpadding="0" class="submitbg" align="center" >
<tr class="submitbg">
<td height="20px" colspan="4" ></td>
</tr>
<tr>
<td width="416"> </td>
<td width="86"><input type="reset" name="bta_reset" value="Reset" style="width:60px;" /></td>
<td width="116">
<input type="submit" name="bta_out_submit" id="bta_out_submit" value="Submit" style="width:60px;"/>
</td>
<td width="350"> </td>
</tr>
<tr class="submitbg">
<td height="20px" colspan="4" ></td>
</tr>
</table>
</form>