Noob w/Java headache

wxdqz

New Member
I having a problem with a java script button used for two functions, one is info submit, the other is complete all blanks completely.

Here's the HTML:

<HTML>
<HEAD>
<TITLE>Touchstone Booksellers</TITLE>

<SCRIPT LANGUAGE="JavaScript">
<!--

function submitted() {
alert("Information submitted!")

function verify() {
if (document.info.elements[0].value == "" ||
document.info.elements[1].value == "" ||
document.info.elements[2].value == "" ||
document.info.elements[3].value == "" ||
document.info.elements[4].value == "" ||
document.info.elements[5].value == "" ||
document.info.elements[6].value == "") {
alert("Please complete each field.")
} else {
submitted()
}
}
//-->
</SCRIPT>

</HEAD>

<BODY BGCOLOR="#38B0DE">
<B><DIV ALIGN="center"><FONT SIZE=7 face=arial>
Touchstone Booksellers</FONT></B>
<BR>
<IMAGE SRC=http://www.webdeveloper.com/forum/archive/index.php/"BOOK1.jpg">
<H3><FONT FACE="arial">a locally-owned, independent bookstore since 1948</H3>
<BR><H1>Specializing in nonfiction of all types</H1></B>
</DIV>

<BR>

<H3>You can use our Web site to search our current stock, place an order, request a search for an out-of-print book, or find out about upcoming events at our store.</H3>

<BR>

<UL type="disk"><LI><A HREF="Construction.htm">Search our stock</A><BR><BR>
<LI><A HREF="Construction.htm">Place an order</A><BR><BR>
<LI><A HREF="Construction.htm">Out-of-print searches</A><BR><BR>
<LI><A HREF="Construction.htm">Events calendar</A></UL>

<H2>Sign up for our mailing list:</H2>
<FORM NAME="info">
First Name:<INPUT TYPE="TEXT" SIZE=20 ID="firstname">
Last Name: <INPUT TYPE="TEXT" SIZE=20 ID="lastname">
<BR>
Street Address:<INPUT TYPE="TEXT" SIZE=50 ID="address">
<BR>
City: <INPUT TYPE="TEXT" SIZE=20 ID="city">
State:<INPUT TYPE="TEXT" SIZE=6 ID="state">
Zip Code:<INPUT TYPE="TEXT" SIZE=15 ID="zipcode"><BR>
Email:<INPUT TYPE="TEXT" SIZE=40 ID="email">
<BR>Click here to submit this information. <INPUT TYPE="BUTTON" VALUE="Send now!" onClick="submitted()">
</FORM>

</BODY>
</HTML>
 
Back
Top