Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

To your order form from Part 3, add input elements for customer name and address

ID: 3689158 • Letter: T

Question

To your order form from Part 3, add input elements for customer name and address if they're not already there. The "state" part of the address must be a select list (also called a "pulldown menu") to allow the person placing the order to choose his or her state. Don't type all fifty states, but supply at least Georgia, Alabama and Florida. Put the names of the states in an PHP array and use PHP code to create the drop-down dynamically. (This will still be named l6p3.php; you're just adding to something you've already tested.) You will find an example of creating a select list for states in the class slides covering HTML forms. You are going to create the drop-down dynamically, and not by hard-coding it.

ORDER FORM

<form name=total id=total

action="http://weblab.kennesaw.edu/formtest.php">
Number of packets of Carrot seeds:<br>
<input type="text" value="0" id="CarrotSeedspackets"><br>
Number of packets of Corn seeds:<br>
<input type="text" value="0" id="CornSeedspackets"><br>
Number of packets of Beet seeds:<br>
<input type="text" value="0" id="BeetSeedspackets"><br>
Customer name:<br>
<input type="text" name="Fullname" ><br>
Shipping Address:<br>
<input type="text" name="Address" ><br><br>

<input type="radio" name="card" value="Visa" checked>

Visa<br>
<input type="radio" name="card" value="MasterCard">

MasterCard<br>
<input type="radio" name="card" value="Discover">

Discover<br>

</form>
<input type="button" value="Submit"/>
<input type="text" id="test">

Explanation / Answer

<html>
<form name=total id=total
action="http://weblab.kennesaw.edu/formtest.php">
Number of packets of Carrot seeds:<br>
<input type="text" value="0" id="CarrotSeedspackets"><br>
Number of packets of Corn seeds:<br>
<input type="text" value="0" id="CornSeedspackets"><br>
Number of packets of Beet seeds:<br>
<input type="text" value="0" id="BeetSeedspackets"><br>
Customer name:<br>
<input type="text" name="Fullname" ><br>
Shipping Address:<br>
<input type="text" name="Address" ><br><br>
<input type="radio" name="card" value="Visa" checked>
Visa<br>
<input type="radio" name="card" value="MasterCard">
MasterCard<br>
<input type="radio" name="card" value="Discover">
Discover<br>
</form>
<select name="country" class="countries" id="countryId">
<option value="">Select Country</option>
</select>
<select name="state" class="states" id="stateId">
<option value="">Select State</option>
</select>
<select name="city" class="cities" id="cityId">
<option value="">Select City</option>
</select>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://lab.iamrohit.in/js/location.js"></script>
<input type="button" value="Submit"/>
<input type="text" id="test">

</html>

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote