Huitzilopochtli
Programmer
Hello
I have two questions and would appreciate some advice.
I have the following code which asks a user to go back and complete the form again. The code, which works, is:
<%
error = request.querystring("error"
select case cstr(error)
case "1"
Response.Write "<p align=center><font face=verdana color=#B22222 size=1><b>You have not completed the topic, name or message fields<br> The server cannot begin processing unless these field(s) are complete</b></font>"
case "2"
Response.Write "<p align=center><font face=verdana color=#B22222 size=1><b>Sorry, Scripting is not allow on this MessageBoard<br> Please fix your Message</b></font>"
case "3"
Response.Write "<p align=center><font face=verdana color=#B22222 size=1><b>Sorry, you have entered an invalid email address<br> Please enter a valid email address</b></font>"
case "4"
Response.Write "<p align=center><font face=verdana color=#B22222 size=1><b>Sorry, you have entered an invalid URL<br> Please enter a valid URL</b></font>"
case Else
Response.Write ""
end select
%>
The typical message, for instance, "Sorry, you have entered an invalid URL<br> Please enter a valid URL" appears in red (that's the =#B22222 colour).
If possible, though, I would like it to appear against a white background in a bordered table. How do I fit that HTML around the Response.Write statements? In other words, where are they positioned?
Finally, is there a tutorial somewhere explaining how ASP and HTML fits together?
Many thanks
Huitzilopochtli
I have two questions and would appreciate some advice.
I have the following code which asks a user to go back and complete the form again. The code, which works, is:
<%
error = request.querystring("error"
select case cstr(error)
case "1"
Response.Write "<p align=center><font face=verdana color=#B22222 size=1><b>You have not completed the topic, name or message fields<br> The server cannot begin processing unless these field(s) are complete</b></font>"
case "2"
Response.Write "<p align=center><font face=verdana color=#B22222 size=1><b>Sorry, Scripting is not allow on this MessageBoard<br> Please fix your Message</b></font>"
case "3"
Response.Write "<p align=center><font face=verdana color=#B22222 size=1><b>Sorry, you have entered an invalid email address<br> Please enter a valid email address</b></font>"
case "4"
Response.Write "<p align=center><font face=verdana color=#B22222 size=1><b>Sorry, you have entered an invalid URL<br> Please enter a valid URL</b></font>"
case Else
Response.Write ""
end select
%>
The typical message, for instance, "Sorry, you have entered an invalid URL<br> Please enter a valid URL" appears in red (that's the =#B22222 colour).
If possible, though, I would like it to appear against a white background in a bordered table. How do I fit that HTML around the Response.Write statements? In other words, where are they positioned?
Finally, is there a tutorial somewhere explaining how ASP and HTML fits together?
Many thanks
Huitzilopochtli