Can someone please show me where to put validation code in these generated pages? Everytime I try it doesn't work. I tried Admin but didn't get a solution.
Also please let me know if you see an error in my code. Thanks.
*
DIM strMainID, strVisitDate, strHoursID, strComments
strMainID = Request.Form("MainID")
strVisitDate = Request.Form("VisitDate")
strTimeIn = Request.Form("HoursID")
strComments = Request.Form("Comments")
IF strMainID <> "" AND strVisitDate <> "" AND strHoursID <> "" AND strComments <> "" THEN
END IF
' do nothing
ELSE
Response.Write "<p>Please click back on your browser and complete the following fields:</p>"
IF strMainID <> "" THEN
Response.Write "<b>• Store, Number</b>
"
END IF
IF strVisitDate<> "" THEN
Response.Write "<b>• Visit Date</b>
"
END IF
IF strHoursID <> "" THEN
Response.Write "<b>• Service Time</b>
"
END IF
IF strComments <> "" THEN
Response.Write "<b>• General Comments</b>
"
END IF
***
Thanks again,
Bandit