Hi,

I am having trouble debugging this code.Please be kind enough to have a look.

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Bogus Order Calculate</title>
</head>
<body>
<H1>Bogus Order Calculate</H1>
You ordered these items:
<form action="FinalizeOrder.jsp" METHOD="POST">
<%
if("Dictionary".equalsIgnoreCase(request.getParameter("book")))
{
%><input type="hidden" name="book" value="10.00">
	a Book<BR><%
	
}
if("Coffeecake".equalsIgnoreCase(request.getParameter("food")))
{
%><input type="hidden" name="food" value="2.00">
	some Food<BR><%
	}
if("Coffee".equalsIgnoreCase(request.getParameter("drink")))
{
%><input type="hidden" name="drink" value="1.00">
	a Drink<BR><%
	}
%>
<BR><BR>
<input type="submit" value="Finalize Order">
</form>
</body>
</html>

and what problem are you having? since we don't know what you are passing to this jsp page, how do you want us to check if it works or not?

and what problem are you having? since we don't know what you are passing to this jsp page, how do you want us to check if it works or not?

sorry here is my program sending arguments.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<title>Insert title here</title>
</head>
<body>
<H3>Bogus company.Simple Old fashioned Order Form</H3>
<BR>
<form action="BogusOrderCalculate.jsp" METHOD="POST"> Please select what you want:
<BR><BR>
Dictionary 
<input type="checkbox" name="book" value="Dictionary">
<BR>
Coffee Cake
<input type="checkbox" name="book" value="Coffeecake">
<BR>
Coffee
<input type="checkbox" name="book" value="Coffee">
<BR>
<BR>
<input type="submit" value="Submit">
</form>

</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.