| Home | Opinion Poll Sample | KV's Kool ASP | |||||||||||||||||||||||||
|
Source Code of poll.asp file: <!-- Beginning of the ASP --> <HTML> <% ' Declare Variables Dim question, option1, option2, option3 pollFile = "pollInfo.txt" ' Retrieve the fullpath of the pollFile pollFile = LEFT(Server.Mappath(Request.ServerVariables("PATH_INFO")), InStrRev(Server.Mappath(Request.ServerVariables("PATH_INFO")), "\")) & pollFile Set fileSysObj = createObject("Scripting.FileSystemObject") ' Check whether the
pollFile exists <!-- Show the Poll Question --> <%=question%> <BR></FONT> <FORM action="result.asp" method="post"> <!-- Show the First Option --> <%=option1%> </FONT><BR><INPUT name=RBOptions type=radio value="2"> <FONT <!-- Show the Second Option --> <%=option2%> </FONT><BR><INPUT <!-- Show the Third Option --> <%=option3%> </FONT><BR><INPUT name=button type=submit value=Vote> </FORM> <!-- End of the ASP --> back to Overview |
||||||||||||||||||||||||||
| Refer this site | ASPAlliance.com | Contact Us | Join | Advertise | Best Viewed with IE 4.0 or above | ||||||||||||||||||||||||||