This is a discussion on "validate database" within the Classic ASP section. This forum, and the thread "validate database are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
validate database
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
validate database
i have declared 3 primary key in my database,
i have a form, that will ask the user to input this three data, i have used <on error resume next> function in my page. if there is a duplication or an error in the submitted page, it will open an error page which i had created. the problem is, i have set that in the form, when the user click the submit button, the page will redirect to the display page, even if the page contain an error(duplication in database) that means that the on error resume next is not working.. anybody can help me please?
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
|
|
||||
|
Hi Monie....
The USUAL way to deal with this sort of thing is to have the form post to the same ASP page. If you give a name and a value to your submit button, then you can check if request.form("buttonname") has a value.... if it has the form was submitted... if not, then the form needs to be displayed. Does that make sense? here is some pseudo code:-
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
well rob...
if i give you a look of my code, will you willing to show me how to code them. i am having trouble doing the if-else statement in my page especially if it deals with the database connection! i'll post you soon thanx for the idea
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
|||
|
Well...actually i have solve that problem.
I have post the form to the same page but i have included the display page under the form so that the user can know that their request have been stored and accepted by the database. Thanx rob.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
![]() |
| Tags |
| validate, database |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| trying to validate css | Phixon | Web Page Design | 12 | Oct 2nd, 2007 20:44 |
| Attempt to validate | Phixon | Web Page Design | 11 | Jul 24th, 2007 14:25 |
| Why should I validate CSS? | spinal007 | Web Page Design | 13 | May 11th, 2007 14:24 |
| XML Code for transfering data from one SQL Server Database to another database | plolla | Other Programming Languages | 1 | Aug 3rd, 2006 18:37 |
| validate form | Monie | Classic ASP | 1 | Sep 2nd, 2004 09:06 |