index.asp
<form action="indexcs.asp" method="post">
<input 'type="text" name = "MyText1" /><br/>
<input 'type="text" name = "MyText2" /><br/>
<input 'type="text" name = "MyText3" />
<input type="submit" name="submit" value="Send Me" />
</form>
indexcs.asp
<%
getsub = Request.form("submit")
getText1 = request.form("MyText1")
getText2 = request.form("MyText2")
getText3 = request.form("MyText3")
if getsub = "Send Me" Then
if getText1 = "" Then
response.write "information requered for input #1"
elseif getText2 = "" Then
response.write "information requered for input #2"
elseif getText3 = "" Then
response.write "information requered for input #3"
else
response.write "Information provided thank you "
" <br/> " &getText1& " <br/> "& getText2 &" <br/> " & getText3
end if
end if
%>
Information provided thank you
1111
2222
3333
https://youtu.be/6JkKieiS38c?list=PLc8kjs127bnOCZi5igTmIWaG_GsHNa7cI
'Program > ASP' 카테고리의 다른 글
HTML파일 안에서 ASP소스가 작동되게 (0) | 2020.02.15 |
---|