ASP scripting help Urgent!!?

mykey myke!!

New member
Im working on a page where users must fill in fields. I want the user to fill in all the fields and if they dont it should display a message otherwise just continue this is what I have is there anything wrong?



if request("button")="Add" then

if request("txt") = "" then
endresponse = "Please fill in the Repair ID field" & "<BR>"
end if

if request("txt2") = "" then
endresponse= endresponse & "Please fill in the Employee Name field" & "<BR>"
end if

if request("txt3") = "" then
endresponse= endresponse & "Please fill in the Computer ID field" & "<BR>"
end if

if request("txt4") = "" then
endresponse= endresponse & "Please fill in the Problem Type field" & "<BR>"
end if

if request("txt5") = "" then
endresponse= endresponse & "Please fill in the Description field" & "<BR>"
end if

if request("txt6") = "" then
endresponse= endresponse & "Please fill in the Repair field" & "<BR>"
end if

if request("txt7") = "" then
endresponse= endresponse & "Please fill in the Repair Status field" & "<BR>"
end if
end if
 
Back
Top