no offense to all but both need a little help.
Targol, your msgbox function needed help, you had a sub ending with a end function and a view other slight changes.
david pook, you do not want to use vbscript for this type of validation but I'll humor you anyways. Also you need some serious help with your codiong conventions no matter who or where this came from. the extra tags and the mess of code etc..
<html>
<head>
<TITLE>ECDL HELP PAGES</TITLE>
<SCRIPT language="VbScript">
sub soumettre()
if document.frm.name.value = "" OR document.frm.dept.value = "" OR document.frm.ext.value = "" Then
Var = msgbox("fill all the fields.",0)
Exit Sub
frm.focus
else
document.frm.submit()
end if
end sub
</SCRIPT>
</HEAD>
<BODY BACKGROUND="" BGCOLOR="#ffffff" TEXT="#000000" LINK="#0000ff" VLINK="#800080" ALINK="#ff0000">
<ALIGN="left"><FONT COLOR=#000000><FONT SIZE="+2">Module 2</B></FONT><p/>
<CENTER>
<FORM ACTION="managing_files.asp" METHOD="POST" NAME="frm">
<WIDTH="100%">
<TR>
<TH><B><FONT COLOR=#0000ff><FONT SIZE="+5">Using a Computer and Managing Files<CENTER></FONT></FONT></B></TH><p/>
<TH><IMG SRC="euro.gif" ALIGN="TOP" ALIGN="CENTRE" HSPACE=400 VSPACE=0><CENTER></TH>
</TR>
</TABLE WIDTH="100%"><p/>
<FONT COLOR=#ff0000><B>Please enter your details</B></FONT><p/>
Name:
<INPUT TYPE="text" NAME="name" SIZE="40" MAXLENGTH="50" VALUE=""><p/>
Dept:
<INPUT TYPE="text" NAME="dept" SIZE="40" MAXLENGTH="50" VALUE=""><p/>
Ext:
<INPUT TYPE="text" NAME="ext" SIZE="10" MAXLENGTH="20" VALUE=""><p/>
<FONT COLOR=#0000ff><FONT COLOR=#ff0000><B>Please tick a box that represents the nature of your question</B></FONT></FONT><p/>
Operating System
<INPUT TYPE="checkbox" NAME="operatingsystem" VALUE="1"><p/>
<p/>
Desktop
<INPUT TYPE="checkbox" NAME="desktop" VALUE="1"><p/>
File Management
<INPUT TYPE="checkbox" NAME="filemanagement" VALUE="1"><p/>
Search/Edit
<INPUT TYPE="checkbox" NAME="searchedit" VALUE="1"><p/>
Printing
<INPUT TYPE="checkbox" NAME="printing" VALUE="1"><p/>
None of the above
<INPUT TYPE="checkbox" NAME="noneoftheabove" VALUE="1"><p/>
<FONT COLOR=#ff0000><B>
Please enter your question in the box below:</B></FONT><p/>
<TEXTAREA NAME="question" ROWS="5" COLS="60"></TEXTAREA><p/>
<p/>
<INPUT TYPE="Button" VALUE="Submit your question" onclick="call soumettre()">
</form><p/>
<p/>
<B><FONT COLOR=#0000ff>An ECDL Tutor will reply within 48hours.</FONT></B><p/>
<I>Thank you for your question.</I>
</body>
</html>
you will need a further validation step for the checkbox's. works differently then just "" if you need that you can check in a search anywhere for vbscript check box validation recommend javascript though.
I have done nothing but modify the above code provided, and have not tested it. IF you have issues with my rewrite let me know
admin@onpntwebdesigns.com