<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Membership</title>
<meta name="GENERATOR" content="PHP">
<script>
 function validateEntries(form){     
         if(document.myForm.firstname.value == "" )
         {
            alert( "Please provide your name!" );
            myForm.firstname.focus() ;
            return false;
         }

         if( document.myForm.lastname.value == "" )
         {
            alert( "Please provide your  last name!" );
            document.myForm.lastname.focus() ;
            return false;
         }

         if( document.myForm.address.value == "" )
         {
            alert( "Please provide your address!" );
            document.myForm.address.focus() ;
            return false;
         }

         if( document.myForm.city.value == "" )
         {
            alert( "Please provide your city!" );
            document.myForm.city.focus() ;
            return false;
         }

         if( document.myForm.state.value == "" ||
            document.myForm.state.value.length != 2 )
         {
            alert( "Please provide a state in the format ##" );
            document.myForm.state.focus() ;
            return false;
         }

         if( document.myForm.zip.value == "" ||
            isNaN( document.myForm.zip.value ) ||
            document.myForm.zip.value.length != 5 )
         {
            alert( "Please provide a zip in the format #####." );
            document.myForm.zip.focus() ;
            return false;
         }

        var x = document.forms["myForm"]["email"].value;
        var atpos = x.indexOf("@");
        var dotpos = x.lastIndexOf(".");
        if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length) {
        alert("Not a valid e-mail address");
        return false;

        }  

         if(document.myForm.username.value == "" )
         {
            alert("Please provide your username!" );
            document.myForm.username.focus() ;
            return false;
         }

        if(document.myForm.password.value != document.myForm.passwordrepeat.value)
        {
        alert("Passwords Do Not Match. Please reenter your password.");
        document.myForm.password.focus();
        return false;
        }
    }

</script>
</head>
<body bgcolor="#736F6E">
<center>
<table bgcolor="#151b54" border="1" table="" width="500">
    <tbody>
    </tbody>
</table>
</center>

<h1>&nbsp;</h1>

<center>&nbsp;</center>
<tbody>
    <tr>
        <td>
        <h1>&nbsp;</h1>

        <center><font color="#ffffff" size="7">Daylight Savings Bookstore Membership</font></center>
        </td>
    </tr>
    <tr>
        <td><img src="book1.gif" /></td>
    </tr>
</tbody>
<center>
<h2>&nbsp;</h2>

<table bgcolor="#151b54" border="1" height="50" table="" width="500">
    <tbody>
        <tr>
            <td>
            <h3>&nbsp;</h3>

            <center><font color="#ffffff">Want to become a member? Just fill out the form below and enjoy your discounts, free items, and rewards!</font></center>
            </td>
        </tr>
    </tbody>
</table>
</center>

<center>&nbsp;</center>
<br />
<center>
<form action="FormProcessor.html" method="post" name="myForm" onsubmit="return validateEntries()"><b>
First Name: <input name="firstname" style="width: 100px" type="text" /> 
Last Name: <input name="lastname" style="width: 100px" type="text" /> 
Address: <input name="address" style="width: 150px" type="text" /><br />
<br />
City: <input name="city" style="width: 100px" type="text" /> 
State: <input name="state" style="width: 25px" type="text" /> 
ZIP: <input name="zip" style="width: 50px" type="int" />
Email: <input name="email" style="width: 200px" type="text" /><br />
<br />
Username: <input name="username" style="width: 100px" type="text" /> 
Password: <input name="password" style="width: 100px" type="password" /> 
Retype Password: <input name="passwordrepeat" style="width: 100px" type="password" /><br />
<br />
<input type="submit" value="Submit" /> <input type="reset" value="Reset" /> </b></form>
</center>

<center>&nbsp;
<center>&nbsp;</center>

<table bgcolor="#151b54" border="1" table="" width="300">
    <tbody>
    </tbody>
</table>

<table bgcolor="#151b54" border="1" table="" width="300">
    <tbody>
        <tr>
            <td>
            <center><font size="4"><a href="product.php" style="color: white">Book List</a></font></center>
            </td>
        </tr>
    </tbody>
</table>
</center>
<td>
<center><font size="4"><a href="membership.php" style="color: white">Membership</a></font></center>
</td>
<td>
<center><font size="4"><a href="Contact.htm" style="color: white">Contacts</a></font></center>
</td>
<center>&nbsp;</center>

<center>&nbsp;</center>

<center>&nbsp;</center>
</body>
</html>

Can someone please help me to understand why my data isnt posting to my other page. I am trying to get the data input from this page to document to my other page form proccessor.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Membership</title>
<meta name="GENERATOR" content="PHP">
<script>
 function validateEntries(form){     
         if(document.myForm.firstname.value == "" )
         {
            alert( "Please provide your name!" );
            myForm.firstname.focus() ;
            return false;
         }

         if( document.myForm.lastname.value == "" )
         {
            alert( "Please provide your  last name!" );
            document.myForm.lastname.focus() ;
            return false;
         }

         if( document.myForm.address.value == "" )
         {
            alert( "Please provide your address!" );
            document.myForm.address.focus() ;
            return false;
         }

         if( document.myForm.city.value == "" )
         {
            alert( "Please provide your city!" );
            document.myForm.city.focus() ;
            return false;
         }

         if( document.myForm.state.value == "" ||
            document.myForm.state.value.length != 2 )
         {
            alert( "Please provide a state in the format ##" );
            document.myForm.state.focus() ;
            return false;
         }

         if( document.myForm.zip.value == "" ||
            isNaN( document.myForm.zip.value ) ||
            document.myForm.zip.value.length != 5 )
         {
            alert( "Please provide a zip in the format #####." );
            document.myForm.zip.focus() ;
            return false;
         }

        var x = document.forms["myForm"]["email"].value;
        var atpos = x.indexOf("@");
        var dotpos = x.lastIndexOf(".");
        if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length) {
        alert("Not a valid e-mail address");
        return false;

        }  

         if(document.myForm.username.value == "" )
         {
            alert("Please provide your username!" );
            document.myForm.username.focus() ;
            return false;
         }

        if(document.myForm.password.value != document.myForm.passwordrepeat.value)
        {
        alert("Passwords Do Not Match. Please reenter your password.");
        document.myForm.password.focus();
        return false;
        }
    }

</script>
</head>
<body bgcolor="#736F6E">
<center>
<table bgcolor="#151b54" border="1" table="" width="500">
    <tbody>
    </tbody>
</table>
</center>

<h1> </h1>

<center> </center>
<tbody>
    <tr>
        <td>
        <h1> </h1>

        <center><font color="#ffffff" size="7">Daylight Savings Bookstore Membership</font></center>
        </td>
    </tr>
    <tr>
        <td><img src="book1.gif" /></td>
    </tr>
</tbody>
<center>
<h2> </h2>

<table bgcolor="#151b54" border="1" height="50" table="" width="500">
    <tbody>
        <tr>
            <td>
            <h3> </h3>

            <center><font color="#ffffff">Want to become a member? Just fill out the form below and enjoy your discounts, free items, and rewards!</font></center>
            </td>
        </tr>
    </tbody>
</table>
</center>

<center> </center>
<br />
<center>
<form action="FormProcessor.html" method="post" name="myForm" onsubmit="return validateEntries()"><b>
First Name: <input name="firstname" style="width: 100px" type="text" /> 
Last Name: <input name="lastname" style="width: 100px" type="text" /> 
Address: <input name="address" style="width: 150px" type="text" /><br />
<br />
City: <input name="city" style="width: 100px" type="text" /> 
State: <input name="state" style="width: 25px" type="text" /> 
ZIP: <input name="zip" style="width: 50px" type="int" />
Email: <input name="email" style="width: 200px" type="text" /><br />
<br />
Username: <input name="username" style="width: 100px" type="text" /> 
Password: <input name="password" style="width: 100px" type="password" /> 
Retype Password: <input name="passwordrepeat" style="width: 100px" type="password" /><br />
<br />
<input type="submit" value="Submit" /> <input type="reset" value="Reset" /> </b></form>
</center>

<center> 
<center> </center>

<table bgcolor="#151b54" border="1" table="" width="300">
    <tbody>
    </tbody>
</table>

<table bgcolor="#151b54" border="1" table="" width="300">
    <tbody>
        <tr>
            <td>
            <center><font size="4"><a href="product.php" style="color: white">Book List</a></font></center>
            </td>
        </tr>
    </tbody>
</table>
</center>
<td>
<center><font size="4"><a href="membership.php" style="color: white">Membership</a></font></center>
</td>
<td>
<center><font size="4"><a href="Contact.htm" style="color: white">Contacts</a></font></center>
</td>
<center> </center>

<center> </center>

<center> </center>
</body>
</html>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.