Help - Search - Members - Calendar
Full Version: newbie on a mission
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
VDawgeh
hiyas everybody biggrin.gif

i have a form i'm writing out, and i need the user to have checked between 1 and 3 boxes, but i dont know how to type it out >.<

i dont know if any of you guys have a server in your houses or something, but i need it to be in an asp file. this is waht i have at the moment, and it chechks for invalid characters, but it still needs to check if the boxes are checked too

CODE
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<title>Search Page</title>
<meta name="description" content="Assign2"/>

<body>
<%
name=request.form("myname")
invalid="1234567890!@#$%^&*()
inflag=false

if len(name)<> 0 then
    for i=1 to len(name)
        testchar=mid(name, i, 1)
        if instr(1, invalid, testchar) <> 0 then
            response.write(testchar & " is not a valid character </br>")
            inflag=true
        end if
    next
else
    response.write("you did not enter a value</br>")
end if
%>
<a href= "search.htm"> return to form</a>
</body>
</html>
Darin McGrew
QUOTE(VDawgeh @ Oct 19 2006, 09:11 PM) *
i have a form i'm writing out, and i need the user to have checked between 1 and 3 boxes, but i dont know how to type it out
Please see the FAQ entry How can I require that fields be filled in, or filled in correctly?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.