What am i doing wrong with this IF statement ??
<%
if Name="" then Msgbox "please enter your name"
End if
%>
I have a text box on my html page, and if the user doesnt fill anything in, I want a message box to appear to inform them that they must enter their name (or whatever)
I actually have 3 text boxes that MUST require their details
ie:
name
dept
ext
There is also a submit button that processes the information via an .asp page that then writes this information to an access database BUTit wont process if any one of those 3 fields are left blank.
Does any of this make any sense to anyone ????
I thought the statement was ok but it doesnt work !!!!.... Please could anyone tell me what i have done wrong ?
Thanks in advance guys
<%
if Name="" then Msgbox "please enter your name"
End if
%>
I have a text box on my html page, and if the user doesnt fill anything in, I want a message box to appear to inform them that they must enter their name (or whatever)
I actually have 3 text boxes that MUST require their details
ie:
name
dept
ext
There is also a submit button that processes the information via an .asp page that then writes this information to an access database BUTit wont process if any one of those 3 fields are left blank.
Does any of this make any sense to anyone ????
I thought the statement was ok but it doesnt work !!!!.... Please could anyone tell me what i have done wrong ?
Thanks in advance guys