View Single Post
  #4 (permalink)  
Old 11-17-2005, 01:36 AM
sysop9999 sysop9999 is offline
WebProWorld Member
 
Join Date: Sep 2005
Posts: 82
sysop9999 RepRank 0
Default

It can be done with javascript, but I'm not that much of an expert on that.

I usually do it like this (using ASP):

<form method="POST" action="check.asp">
....
.....rest of the form fields....
.....

And on the check.asp page I run through the form collection to see if any of the fields are missed out, and return an error if this is the case.

like:

Code:
<%
dim kon
for each kon in request.form
 if request.form.item(kon) = "" then
%>
error in form - please hit backbutton and fill out all required fields.
<%end if
next
%>
All went well .... have a nice day.
I haven't tried this one though, but that's how I'd perform the task.
__________________
Kim B. Juul
Danish Web Design & SEO
Reply With Quote