Quinnr
03-21-2004, 05:15 PM
Hi,
Could anyone please tell me if there is an easy way to add a "More" button to a form which saves data to a database like a "Submit" button but then brings you back to the same page. I also have to have to have a Submit button beside it in case the user has no more data to enter.
<form action="PrecedenceForm.asp" method="post" name="ReqEnterForm">
r1 <input type="text" name="txtReq1">
r2 <input type="text" name="txtReq2">
r3 <input type="text" name="txtReq3">
r4 <input type="text" name="txtReq4">
r5 <input type="text" name="txtReq5">
<input type="submit" value="Save" name="ReqEnterSave">
<input type="submit" value="More" name="ReqEnterMore">
</form>
Precedence.Form adds the data to the database in the usual way but I just cant figure out how to get the more button to work. I have tried onclick and tried creating a second form on the same page just below explicitly for the more button but all this does is reload the page and it only saves data to the database when I click save.
I'd really appreciate any help anybody could provide.
Ruairi
Could anyone please tell me if there is an easy way to add a "More" button to a form which saves data to a database like a "Submit" button but then brings you back to the same page. I also have to have to have a Submit button beside it in case the user has no more data to enter.
<form action="PrecedenceForm.asp" method="post" name="ReqEnterForm">
r1 <input type="text" name="txtReq1">
r2 <input type="text" name="txtReq2">
r3 <input type="text" name="txtReq3">
r4 <input type="text" name="txtReq4">
r5 <input type="text" name="txtReq5">
<input type="submit" value="Save" name="ReqEnterSave">
<input type="submit" value="More" name="ReqEnterMore">
</form>
Precedence.Form adds the data to the database in the usual way but I just cant figure out how to get the more button to work. I have tried onclick and tried creating a second form on the same page just below explicitly for the more button but all this does is reload the page and it only saves data to the database when I click save.
I'd really appreciate any help anybody could provide.
Ruairi