Redirect on Insert Failure
I looked but couldn't find a previous solution.
I am adding an Admin section that includes a Product Insert page created with DA 2.1. The product names must be unique, and are set up as a Unique field in the db. I want to trap the MySQL error that occurs if someone tries to add an already existing product name and display my own error page.
What code should I use to redirect to the error page, and where in the form processing code should I place it??
Thanks,
Mike