When i reload my registration page, duplicate data gets entered in to database ...should i clear cookies..any solution

Recommended Answers

All 2 Replies

Need to see your code, but you are basiclly doing a submission on reload. Maybe do some validation checking, or check if field exists in database and respond with error.

We definately need to see your code, but it sounds like you are writing to your dB on each page load. You should check to see if hte page is posted back by the submit button and if it is, then continue processing to write to the db. If its the first page load without a form posting, do not write to the db.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.