I did good with my Midterm. Although, it still bugging me that I can't resolve the last exercise I was doing. Below is the final code I have . . . and I should say . . . quit on this one. It's tough! I can't get it to work
Everything is showing normal except the function is NOT working right. I tried to click one of the radio buttons and try to submit it. BUt it doesn't add a day or two or processing but instead it shows undefined
Hmmm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"
http://www.w3.org/TR...nsitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<title> Digital Photos </title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript">
<!--
var currentTime = new Date();
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
var year = currentTime.getFullYear()
var pmonth = pickupTime.getMonth() + 1;
var pday = pickupTime.getDate();
var pyear = pickupTime.getFullYear();
function pickupdate(processing) {
var pickupTime = new Date();
var processing = 1;
pickupTime.setDate(currentTime.getDate()+processing);
}
//-->
</script>
</head>
<body>
<h1>Don's Digital Photo Development</h1>
<form action="FormProcessor.html" method="get" enctype="application/x-www-form-urlencoded">
<form id="form1" name="form1" method="post" action="">
<label for="textfield">Last name</label><br />
<input name="Last name" type="text" />
<p><label for="textfield">First name</label><br />
<input name="First name" type="text" />
<p><label for="textfield">Telephone</label><br />
<input name="Telephone" type="text" />
<p><label for="radio">Item</label><br />
<input name="Item" type="radio" value="5x7 Prints(1 day)" />5x7 Prints(1 day)
<input name="Item" type="radio" value="Poster(1 day)" />Poster(1 day)
<input name="Item" type="radio" value="Coffee Mug(2 days)" />Coffee Mug(2 days)
<input name="Item" type="radio" value="T-shirt(2 days)" />T-shirt(2 days)
<p> Today's Date <br />
<script type="text/javascript"> document.write("<input name=date type=text value=" + month + "/" +
day + "/" + year + ">")</script> <br />
Pick-up Date <br />
<script type="text/javascript"> document.write("<input name=date type=text value=" + pmonth + "/" +
pday + "/" + pyear + ">")</script> <br />
<p> <input name="submit" type="submit" value="Place Order" />
</form>
</body>
</html>