TudorSmith
Programmer
I have an ASP page with several input text boxes (Typically holding numerical values)
At the end of the form I have two SUBMIT buttons:
My objective is if the user clicks <SAVE RECORD>, then the data is passed to the table and saved (I have this code in place and it works fine). What I have though is a field called "Commited" in the table, and if the user clicks <COMMIT RECORD> instead of just saving the entry, the flag in the table will be set. this will mean it will return "Read Only" every time a user retrieves the saved record (i.e. cannot edit if "Commit" = true)
My task..and I can't work it out because I'm a novice ASP programmer..is how do I tell the form to pass save the record on one button and to commit the record on another button!
Any ideas?
Thanks
Tudor
birklea ~©¿©~ <><
Dim objJedi as Jedi.Knight
Set objJedi[skyWalker].Aniken = FatherOf(useThe.Force(objJedi[skyWalker].luke))
At the end of the form I have two SUBMIT buttons:
Code:
<form method="POST" action="AddPhasedBudget.asp" name="form1">
Blah Blah Blah <INPUT FILES HERE>
<input name="save" type="submit" value="Save Record">
<input name="Commit" type="submit" value="Commit Record">
</form>
My objective is if the user clicks <SAVE RECORD>, then the data is passed to the table and saved (I have this code in place and it works fine). What I have though is a field called "Commited" in the table, and if the user clicks <COMMIT RECORD> instead of just saving the entry, the flag in the table will be set. this will mean it will return "Read Only" every time a user retrieves the saved record (i.e. cannot edit if "Commit" = true)
My task..and I can't work it out because I'm a novice ASP programmer..is how do I tell the form to pass save the record on one button and to commit the record on another button!
Any ideas?
Thanks
Tudor
birklea ~©¿©~ <><
Dim objJedi as Jedi.Knight
Set objJedi[skyWalker].Aniken = FatherOf(useThe.Force(objJedi[skyWalker].luke))