I'll try but you need to tell me whats wrong? Exactaly what I need to do to break it ;)
LAter
Main Topics
Browse All TopicsI need help debugging the following program.
Daniel
<html>
<title>Conquer_Parks_2</ti
<head>
<SCRIPT LANGUAGE="JavaScript">
<!--
function Bier()
{
var s=window.document.Schweine
var x=0;
for (i=0;i<6;i++)
{
if (s.elements(i).checked)
{
var RadioValue=fred.elements(i
}
}
for (i=5;i<10;i++)
{
var CheckTrue=0
if (s.elements(i).checked==tr
{
CheckTrue=CheckTrue+1;
}
if (CheckTrue<=1)
{
alert("Select at least one value");
return;
}
if (s.elements(i).checked)
{
var SName=SName + s.elements(i).name + " ";
return;
}
}
if (s.c1.value=="default")
{
alert ("Select a value other than 0-4 Beers");
return;
}
var oldcharA=s.d1.value;
var oldcharlenA=oldcharA.lengt
var newcharA=oldcharA;
for (i=0;i<oldcharlenA;i++)
{
newcharA=newcharA.replace(
newcharA=newcharA.replace(
newcharA=newcharA.replace(
}
var newcharlenA=newcharA.lengt
var oldcharB=s.d1value;
var oldcharlenB=oldcharB.lengt
var newcharB=oldcharB;
for (i=0;i<oldcharlenB;i++)
{
newcharB=newcharB.replace(
newcharB=newcharB.replace(
newcharB=newcharB.replace(
}
var newcharlenB=newcharlenB.le
document.clear
document.open
document.write("<html><bod
document.write("<table width='90%' bgcolor='#ffffc0' border='10'><tr><td colspan='4'>");
document.write("<center><b
document.write("<tr><td colspan='4' align='center'><b><h3>Radi
document.write("<tr><td>Na
document.write("<td>Radio button checked at load time: Radio 1</td><td>Radio button checked by user: " & Radio_Value);
document.write("</td</tr><
document.write("<tr><td colspan='2'>Name of each checkbox: B1, B2, B3, B4</td><td colspan='2'>Selected Value: " & SName);
document.write("</td></tr>
document.write("<tr><td>Na
document.write("Third option, Third option<li> Fourth option, Fourth option<li>Fifth option, Fifth option<li>Sixth option, Sixth option</ul></td>");
document.write("<td>Index of the initial selection and its value: O, First one</td>");
document.write("<td>Index and value of initial selected by user: " & c1_value);
document.write("</td><tr><
document.write("<tr><td>Na
document.write("<td>Users entry and length of entry before editing: " & oldcharA & " and " & oldcharlenA & "</td>");
document.write("</td><td>U
document.write("</td></tr>
document.write("<tr><td>Na
document.write("<td>User's
document.write("</td><td>U
document.write("</td></tr>
}
</script>
</head>
<body bgcolor="ffffc0">
<Form name="Schweinehund">
<center><b><h1>Beer Survey</h1></b></center>
<p><br>
<center><table border="0" width="90%" bgcolor="ffffc0">
<tr><td colspan="6"> <br></td></tr>
<tr><td colspan="6"><center><b><h3
<tr>
<td>Warsteiner<input type="radio" name="a1" checked value="Warsteiner"></td>
<td>Früh Kölsch<input type="radio" name="a1" value="Früh Kölsch"></td>
<td>Paulaner Franziskaner<input type="radio" name="a1" value="Paulaner Franziskaner"></td>
<td>Diebels Alt<input type="radio" name="a1" value="Diebels Alt"></td>
<td>Bitburger<input type="radio" name="a1" value="Bitburger"></td>
<td>Becks<input type="radio" name="a1" value="Becks"></td>
</tr>
<tr><td colspan="6"> <p> 
<tr><td colspan="6"><center><b><h3
<tr>
<td colspan="6">
<table border="0" width="100%" bgcolor="ffffc0">
<tr>
<td>Spec's Liquor, Downtown<input type="checkbox" name="b1" value="b1"></td>
<td>Central Market<input type="checkbox" name="b1" value="b2"></td>
<td>Randall's<input type="checkbox" name="b1" value="b3"></td>
<td>Citgo<input type="checkbox" name="b1" value="b4"></td>
</tr>
</table>
</td>
</tr>
<tr><td colspan="6"> <p> 
<tr><td colspan="6"><center><b><h3
<tr>
<td colspan="6">
<center>
<select name="c1">
<option value="default" selected>0-4 Beers (Domestic brew)
<option value="Second option">0-6 Beers (Mix between domestic and import)
<option value="Third option">0-8 Beers (The darker the better)
<option value="Fourth option">0-10 Beers (Doppelbock)
<option value="Fifth option">> 10 Beers (Beer and liquor mix)
<option value="Sixth option">> 10 Beers (I don't remember)
</select>
</center>
</td>
</tr>
<tr><td colspan="6"> <p> 
<tr><td colspan="6"><center><b><h3
<tr>
<td colspan="6"><center><INPUT
</tr>
<tr><td colspan="6"> <p> 
<tr><td colspan="6"><center><b><h3
<tr>
<td colspan="6"><center><texta
</tr><tr><td colspan="6"> </td>
</tr><tr>
<td colspan="6">
<center>
<input type="button" value="Edit and Report" name="Bier" >
</td>
</tr>
</table></center>
</form>
</body>
</html>
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi InnerChild,
It seems to me that the algorithm and syntax for the sub is not correct. The html part works.
Check out the requirements for this assignment and you will get the bigger picture.
http://www.bauer.uh.edu/~p
I already finished the VBScript part.
Daniel
watch it guys....
http://www.experts-exchang
violating the guidelines for academic honesty or other unethical behavior.
thx Daniel, just checking.
BTW, <TITLE> should be within the <HEAD>
In broad terms you're missing a form action and a submit mechanism. Those document.write()s will have no effect (page is already displayed). The form could check validity (which you've started coding) and then post to another page (though the <FORM METHOD="GET"> should be used)
You can use the following to get the Key-value pairs on the second page (after the post):
var keyvals = location.search.substring(
dschafer77,
Bushweiler has offered you a link to the Membership Agreement to which you are a party, and to which you have agreed.
Please understand that it's okay for Experts to guide you, but it's not okay for them to do your homework. Ungraded or not, an assignment by a teacher is still homework.
Also please understand that the ramifications are not only for your account, but for the Expert who does your homework for you.
Netminder
CS Moderator
Business Accounts
Answer for Membership
by: tonejunkiePosted on 2002-10-22 at 06:45:41ID: 7356185
Yeah... have fun!