ideasworking
Programmer
Hello,
I have a form that adds records to a MsSQL database; the submit action loads a page UpdateRecords.php which contains the code to update the records and then redirects the browse back to the original page. Everything works great, however I would like to give the user some feedback as to the result of the update request. Either "Records updated successfully" or "Failed to update records". What is the best way to do this?
My initial thought is to pass a variable back from the UpdateRecords.php page and depending on the variable use Javascript to alert a message. If the variable was empty no alert would be raised.
Does this sound like the right approach or is there a better method to achieve the desired result?
TIA,
Lou
I have a form that adds records to a MsSQL database; the submit action loads a page UpdateRecords.php which contains the code to update the records and then redirects the browse back to the original page. Everything works great, however I would like to give the user some feedback as to the result of the update request. Either "Records updated successfully" or "Failed to update records". What is the best way to do this?
My initial thought is to pass a variable back from the UpdateRecords.php page and depending on the variable use Javascript to alert a message. If the variable was empty no alert would be raised.
Does this sound like the right approach or is there a better method to achieve the desired result?
TIA,
Lou