Hi All

I've just been doing a basic Contact Us form and having actually structured
it for a change I noticed that a lot of repetitive and could possibly done
dynamically.

Reason I wanted to try and do it dynamically is that the admin user might
find that they want say the Country to be a required field or the size of
the postcode field should set to 20 not 10, etc.

I've always had to go into the pages and hard code these changes, but I
wanted to know if anybody had really had a go at doing this and to see if
you had any problems with it.

Only problem I can initially see is that my JavaScript validation (I prefer
to use this quicker method than the user submitting and then finding that
they've missed a field and need to re-enter) will need to be dynamically
built as well.

Also what's the preferred method for doing form validation?

Is JavaScript validation prone to errors that ASP can handle?

If I did do the ASP validation what's the best method to use if the user
goofs on a field entry (or entries)???

Is simply the case that the 1st page (ie the entry page) actually has ....
VALUE=<%=name%>..... set for each field so the 1st time the user visits the
fields are blank, but if they do anything wrong you can re-call this same
page with the filled in details of any that are correct?

Sorry there are a lot of queries in one, but I think they are all related
ones, which you might be on a roll with.

Many thanks.

Rgds

Laphan