I made a form in HTML for my company. Heres the code:
<form action="orderform.php" method="POST">
<p><strong>Personal Information</strong></p>
<p>
Name:
<input name="name" type="text" id="name" maxlength="20" />
*
<label></label>
<br />
<br />
Address:
<input name="address" type="text" id="address" maxlength="70" />
*<br />
<br />
Address 2:
<input name="address2" type="text" id="address2" maxlength="70" />
<br />
<br />
City:
<input name="city" type="text" id="city" maxlength="70" />
*<br />
<br />
Country:
<input name="country" type="text" id="country" maxlength="70" />
*</p>
<p><strong>Contact Information</strong></p>
<p>Primary Email:
<input name="primaryemail" type="text" id="primaryemail" maxlength="50" />
*<br />
<br />
Secondary Email:
<input name="secondemail" type="text" id="secondemail" maxlength="50" />
<br />
<br />
Phone:
<input name="phone" type="text" id="phone" maxlength="20" />
*</p>
<p><strong>Ventrilo Server Information </strong></p>
<p>Ventrilo Server Slots<br />
<label>
<select name="select">
<option value="10">10 Slots ($3.50)</option>
<option value="15">15 Slots ($5.25)</option>
<option value="20">20 Slots ($7.00)</option>
<option value="25">25 Slots ($8.75)</option>
<option value="30">30 Slots ($10.50)</option>
<option value="35">35 Slots ($12.25)</option>
<option value="40">40 Slots ($14.00)</option>
<option value="45">45 Slots ($15.75)</option>
<option value="50">50 Slots ($17.50)</option>
<<option value="75">75 Slots ($26.25)</option>
<option value="100">100 Slots ($35.00)</option>
</select>
</label>
</p>
<p>Ventrilo Server Location<br />
<label>
<select name="select2">
<option value="seattle">Seattle, Washington</option>
<option value="LA">>Los Angeles, California</option>
<option value="dallas">Dallas, Texas</option>
<<option value="NY">New York, New York</option>
<option value="chicago">Chicago, Illinois</option>
<option value="toronto">Toronto, Ontario</option>
<option value="montreal">Montreal, Quebec</option>
</select>
</label>
</p>
<p>Ventrilo Server Title:
<input name="ventrilotitle" type="text" id="ventrilotitle" maxlength="70" />
*<br />
<br />
Connect Password:
<input name="serverpw" type="text" id="serverpw" maxlength="70" />
</p>
<p><strong>Login Information</strong></p>
<p>CPanel Login:
<input name="cpanelusername" type="text" id="cpanelusername" maxlength="70" />
*<br />
<br />
CPanel Password:
<input name="cpanelpw" type="text" id="cpanelpw" maxlength="70" />
*<br />
</p>
<p>Additional Comments:<BR>
<textarea name="comments" cols="35" rows="4" wrap="virtual"></textarea>
<br />
<br />
<br />
<label>
<input type="submit" value="Next >">
</label></p>
</form>
Now I need this to be sent to my email with all the required fields.. So I started to make orderform.php, this is when I got confused!
<html>
<body>Name: <?php echo $_POST["name"]; ?><br />
Address: <?php echo $_POST["address"]; ?><br />
Address 2: <?php echo $_POST["address2"]; ?><br />
City: <?php echo $_POST["city"]; ?><br />
Primary Email: <?php echo $_POST["primaryemail"]; ?><br />
Secondary Email: <?php echo $_POST["secondemail"]; ?><br />
Phone: <?php echo $_POST["phone"]; ?><br />
Server Slots: <?php echo $_POST["ventrilo"]; ?><br />
Server Location: <?php echo $_POST["ventlocation"]; ?><br />
Server Name: <?php echo $_POST["ventriloname"]; ?><br />
Server Password: <?php echo $_POST["serverpw"]; ?><br />
CPanel Login: <?php echo $_POST["cpanelusername"]; ?><br />
CPanel Password: <?php echo $_POST["cpanelpw"]; ?><br />
Additional Comments: <?php echo $_POST["comments"]; ?><br />
</body>
</html>
The text fields with the "*" are required.. I also was wondering how to force the client to fill those in before they can continue--popup saying, All required fields not complete!
I got to the drop down menu and didn't really know what to do.. I need all this submitted to my EMAIL when the user clicks Submit. I was also wondering how to make the drop down list (The list with MONEY invloved) attach paypal links so when they submit the form, it will transfer them to the paypal site to pay for what they chose in the MONEY list. Any help would be greatly apprechiated!
Thanks again for all your help!