Print Page | Close Window

required fields not wanted

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=3762
Printed Date: 29 March 2026 at 5:31pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: required fields not wanted
Posted By: LeoV
Subject: required fields not wanted
Date Posted: 23 June 2003 at 8:43am

I do have a question about required fields which are not wanted and so on.

I use the form- and update_entry-pages as know from this great site. I do have a form witch can be submitted by users. It then runs through update_entry.asp where the following lines are:

'Update the record in the recordset

rsUpdateEntry("Voornaam") = Request.Form("Voornaam")

etc.

which lines get the information from the form.

But when one field is empty the server returns a message that the field is a required one. I the database i orderd most fields not to be required.

Can anybody please tell me how to submit a form and leaving some fields empty?

Do i have to use an other method which lets me to submit blank fields.




Replies:
Posted By: Mart
Date Posted: 23 June 2003 at 9:58am

If request.form("Voornaam")="" then

Voornaam=" " 'just returns a blank space

end if

... database connetct etc

rsUpdateEntry("Voornaam") = Voornaam

Obviously needs customizing but I hope it helps.

Mart.



Posted By: LeoV
Date Posted: 23 June 2003 at 3:12pm

Where in the asp file do i have to put in this piece ?

Is it on top of the database connection etc..?

I do not really understand......




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net