Ok So I made a registration type page. Now I need to pass that information from a php page into a mysql server(I have wamp set up on my computer).
How would I go about doing this. I looked at the w3 school's site and I'm not sure what I'm reading. (ignore the css)
the values I would like to pass through are "Email" and "Password". The name of the mysql database is Customers.
How would I go about doing this. I looked at the w3 school's site and I'm not sure what I'm reading. (ignore the css)
the values I would like to pass through are "Email" and "Password". The name of the mysql database is Customers.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>Electronics R US</title>
<link type="text/css" href="menu.css" rel="stylesheet" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="menu.js"></script>
</head>
<body>
<style type="text/css">
* { margin:0;
padding:0;
}
html { background:#444; }
body {
margin:0px auto;
width:75%;
height:1200px;
background:#ffffff;
overflow:hidden;
}
div#menu {
top:50px;
}
div#menu {
top:25px;
}
div#copyright { display: none; }
</style>
<div id="menu">
<ul class="menu">
<li><a href="#" class="parent"><span>Home</span></a>
</li>
<li><a href="#" class="parent"><span>TVs&Audio</span></a>
<div><ul>
<li><a href="#" class="parent"><span>Samsung</span></a></li>
<li><a href="#"><span>Sony</span></a></li>
<li><a href="#"><span>LG</span></a></li>
</ul></div>
</li>
<li><a href="#" class="parent"><span>Audio&Music</span></a>
<div><ul>
<li><a href="#" class="parent"><span>Classical</span></a></li>
<li><a href="#"><span>Hip Hop/Rap</span></a></li>
<li><a href="#"><span>Pop</span></a></li>
<li><a href="#"><span>R&B</span></a></li>
<li><a href="#"><span>Rock</span></a></li>
</ul></div>
</li>
<li><a href="#" class="parent"><span>Car&GPS</span></a>
<div><ul>
<li><a href="#" class="parent"><span>Garmin</span></a></li>
<li><a href="#"><span>TomTom</span></a></li>
<li><a href="#"><span>Megellan</span></a></li>
</ul></div>
</li>
<li><a href="#" class="parent"><span>Cameras</span></a>
<div><ul>
<li><a href="#" class="parent"><span>Sony</span></a></li>
<li><a href="#"><span>Samsung</span></a></li>
<li><a href="#"><span>Nikon</span></a></li>
</ul></div>
</li>
<li><a href="#" class="parent"><span>Computers</span></a>
<div><ul>
<li><a href="#" class="parent"><span>HP/Compaq</span></a></li>
<li><a href="#"><span>Dell</span></a></li>
<li><a href="#"><span>Gateway</span></a></li>
</ul></div>
</li>
<li><a href="#" class="parent"><span>Video Games</span></a>
<div><ul>
<li><a href="#" class="parent"><span>Playstation</span></a></li>
<li><a href="#"><span>Xbox 360</span></a></li>
<li><a href="#"><span>Wii</span></a></li>
</ul></div>
</li>
<li><a href="#"><span>Copmpany Info</span></a>
</li>
<li><a href="#"><span>Help</span></a></li>
<li class="last"><a href="#"><span>Contacts</span></a></li>
</li>
</ul>
</div>
<pre>
</pre>
<h2>Website User name and Password</h2>
<hr />
<form action="Signup.php" method="post">
<table border="0">
<tr>
<td width = 50%;>Email</td>
<td> <input type="text" name="Email"/></td>
</tr>
<tr>
<td>Verify Email</td>
<td><input type="text" name="VerifyEmail"/></td>
</tr>
<form name=myForm onSubmit="return validatePwd()">
<tr>
<td>Enter Password</td>
<td><input type=password name=password maxlength=12></td>
</tr>
<tr>
<td>Verify Password</td>
<td> <input type=password name=password2 maxlength=12></td>
</tr>
</form>
</table>
<hr /><pre>
</pre>
<strong>Billing Information</strong>
<hr />
This address must match the address that your monthly credit card statement or monthly bank statement is sent to.<br />If this condition is not met, your order will not be processed. To prevent unnecessary delays, <br />please verify that your billing address matches the address on your statement before ordering.</td></tr>
<table border ="0">
<tr>
<td width = 45%;>First Name</td>
<td><input type="text" name="FirstName"/></td>
</tr>
<tr>
<td>Last Name</td>
<td><input type="text" name="LastNAme"/></td>
</tr>
<tr>
<td>Comapny Name</td>
<td><input type="text" name="CompanyName"/></td>
</tr>
<tr>
<td>Address</td>
<td><input type="text" name="Address"/></td>
</tr>
<tr>
<td>Address 2</td>
<td><input type="text" name="Address2"/></td>
</tr>
<tr>
<td>City</td>
<td><input type="text" name="City"/></td>
</tr>
<tr>
<td>State</td>
<td><select name="SState" id="SState" tabindex="0" size="1" ><option value="AA">AA</option><option value="AP">AP</option><option value="AE">AE</option><option value="AK" selected="selected">ALASKA</option><option value="AL">ALABAMA</option><option value="AR">ARKANSAS</option><option value="AZ">ARIZONA</option><option value="CA">CALIFORNIA</option><option value="CO">COLORADO</option><option value="CT">CONNECTICUT</option><option value="DC">DISTRICT OF COLUMBIA</option><option value="DE">DELAWARE</option><option value="FL">FL</option><option value="GA">GEORGIA</option><option value="HI">HAWAII</option><option value="IA">IOWA</option><option value="ID">IDAHO</option><option value="IL">ILLINOIS</option><option value="IN">INDIANA</option><option value="KS">KANSAS</option><option value="KY">KENTUCKY</option><option value="LA">LOUISIANA</option><option value="MA">MASSACHUSETTS</option><option value="MD">MARYLAND</option><option value="ME">MAINE</option><option value="MI">MICHIGAN</option><option value="MN">MINNESOTA</option><option value="MO">MISSOURI</option><option value="MS">MISSISSIPPI</option><option value="MT">MONTANA</option><option value="NC">NORTH CAROLINA</option><option value="ND">NORTH DAKOTA</option><option value="NE">NEBRASKA</option><option value="NH">NEW HAMPSHIRE</option><option value="NJ">NEW JERSEY</option><option value="NM">NEW MEXICO</option><option value="NV">NEVADA</option><option value="NY">NEW YORK</option><option value="OH">OHIO</option><option value="OK">OKLAHOMA</option><option value="OR">OREGON</option><option value="PA">PENNSYLVANIA</option><option value="PR">PUERTO RICO</option><option value="RI">RHODE ISLAND</option><option value="SC">SOUTH CAROLINA</option><option value="SD">SOUTH DAKOTA</option><option value="TN">TENNESSEE</option><option value="TX">TEXAS</option><option value="UT">UTAH</option><option value="VA">VIRGINIA</option><option value="VT">VERMONT</option><option value="WA">WASHINGTON</option><option value="WI">WISCONSIN</option><option value="WV">WEST VIRGINIA</option><option value="WY">WYOMING</option></select></td>
</tr>
<tr>
<td>Zip Code</td>
<td><input type="text" name="ZipCode"/></td>
</tr>
<td>Phone number</td>
<td>(<input name="ShippingPhone_tel1" id="ShippingPhone_tel1" size="3" class="tel3" maxlength="3" type="text" />
<input name="ShippingPhone_originalTel1" id="ShippingPhone_originalTel1"
type="hidden" />
<input name="ShippingPhone_originalTel2" "ShippingPhone_originalTel2"
type="hidden" />
<input name="ShippingPhone_originalTel3" id="ShippingPhone_originalTel3"
type="hidden" />
<input name="ShippingPhone_checkTel1" id="ShippingPhone_checkTel1"
type="hidden" value="0" />) <input name="ShippingPhone_tel2" id="ShippingPhone_tel2"
size="3" class="tel3" maxlength="3" type="text" />- <input
name="ShippingPhone_tel3" id="ShippingPhone_tel3"
size="4" class="tel4" maxlength="4" type="text" /></td>
</tr>
</table>
<div style = "width: 50%; height: 200px; overflow: scroll">
This is a bunch of text that you are suppose to agree to when signing up for a website. Of course no one really reads this so I'm just gonna type a bunch of random stuff. Also you agree that I can have your first born child if you decide to buy something from me. I feel like taking a nap right now but if you have any question don't hit up the site admin because he could really careless about your problems when he has his own. What's that? You need help. Well google is your friend try it out sometimes. Or hey how bout you actually get up and try it before whining you can't do it.Hey look! It scrolls!1 WEEEEEEEE<br /> EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br />EEEEEEEE<br /> Oh man that was a blast. Now go buy some stuff! Or I'll kill a kitten. I MEAN IT!!!!</div>
I have read, and agree to abide by the terms service of this site <input type="checkbox" name="TOSagree" value="TOSagree" />
<input type="submit" value = "Submit" />
</form>
</body>
</html>






