hey, its me again, im still working on my quiz thing and i got it to keep track of the score, but i want to add a SKIP button that skips one question and comes back to it at the end of the quiz... so far my first pages of the quiz look like this:
PAGE 1-
<head>
<title></title>
</head>
<body>
<?php
print(\"<table width=500 border=0 cellpadding=10 cellspacing=0 bordercolor=navy>
<tr>
<td>
<font face=arial size=2>
A 5-year-old boy with a history of frequent mouth and diaper fungal rash, and recurrent staphylococcal infection is being evaluated in the hospital. Physical examination is significant for cervical lymphadenopathy, hepatomegaly, and splenomegaly. The child\'s mother states that her son contracts strep throat whenever strep affects other preschool children. However, he frequently contracts staphylococcal throat infection, and quite often at times that no other child at the school contracts the disease. Serum analysis confirms neutrophilic leukocytosis and abnormal immunoglobulin level. Phagocytes and giant cells obtained from lymph nodes are surrounded by granulomatous tissues.
</font>
</td>
</tr>
</table>
<br><br>
<Table width=500 border=2 cellpadding=10 cellspacing=0 bordercolor=black>
<tr>
<td>
<font face=arial>
<center>\");
$q1=\"0\";
$c=0;
$i=0;
$page=\"samples1.php\";
$cont=\"CHECK\";
$quiz=\"<font size=2> <input type=radio name=\\\"question\\\" value=\\\"a\\\"> Congenital T-cell deficiency<br> <input type=radio name=\\\"question\\\" value=\\\"b\\\"> Adenosine deaminase (ADA) deficiency<Br> <input type=radio name=\\\"question\\\" value=\\\"c\\\"> NADPH oxidase deficiency<Br> <input type=radio name=\\\"question\\\" value=\\\"d\\\"> Lack of development of thymus<br> <input type=radio name=\\\"question\\\" value=\\\"e\\\"> Development of resistant strains of staphylococci<br><br></font>\";
$question1=\"<b><font color=navy size=2>1) The mechanism of disease in this child is best explained by which of the following?</b><Br><Br></font>\";
print(\"$question1\");
if(@$beensubmitted) {
if($question == \"c\") {
print(\"<font color=blue face=arial><b>Correct!</b></font>\");
$page=\"samples2.php\";
$cont=\"NEXT\";
$quiz=\"\";
$q1=\"c1\";
$$q1=1;
} else {
print(\"<font color=red face=arial><b>Incorrect!</b></font>\");
$page=\"samples2.php\";
$cont=\"NEXT\";
$quiz=\"\";
$q1=\"i1\";
$$q1=1;
}
if(@\"$c1\") {
$c=$c+1;
} else {
$i=$i+1;
}
}
print(\"<form action=$page method=post>\");
print(\"</center>$quiz\");
if(@$c1) {
print(\"<input type=hidden name=\\\"c1\\\" value=$c1>\");
}
if(@$i1) {
print(\"<input type=hidden name=\\\"i1\\\" value=$i1>\");
}
print(\"<input type=hidden name=\\\"c\\\" value=$c>\");
print(\"<input type=hidden name=\\\"i\\\" value=$i>\");
print(\"<center><input type=submit value=$cont name=\\\"beensubmitted\\\"></center>\");
print(\"</form></font><br><br>\");
print(@\"$c/$i\");
?>
</body>
PAGE 2-
<head>
<title></title>
</head>
<body>
<?php
print(\"<table width=500 border=0 cellpadding=10 cellspacing=0 bordercolor=navy>
<tr>
<td>
<font face=arial size=2>
A 5-year-old boy with a history of frequent mouth and diaper fungal rash, and recurrent staphylococcal infection is being evaluated in the hospital. Physical examination is significant for cervical lymphadenopathy, hepatomegaly, and splenomegaly. The child\'s mother states that her son contracts strep throat whenever strep affects other preschool children. However, he frequently contracts staphylococcal throat infection, and quite often at times that no other child at the school contracts the disease. Serum analysis confirms neutrophilic leukocytosis and abnormal immunoglobulin level. Phagocytes and giant cells obtained from lymph nodes are surrounded by granulomatous tissues.
</font>
</td>
</tr>
</table>
<br><br>
<Table width=500 border=2 cellpadding=10 cellspacing=0 bordercolor=black>
<tr>
<td>
<font face=arial>
<center>\");
$q2=\"0\";
$page=\"samples2.php\";
$cont=\"CHECK\";
$quiz=\"<font size=2> <input type=radio name=\\\"question\\\" value=\\\"a\\\"> Chediak-Higashi syndrome<br> <input type=radio name=\\\"question\\\" value=\\\"b\\\"> Chronic granulomatous disease<Br> <input type=radio name=\\\"question\\\" value=\\\"c\\\"> Wiskott-Aldrich syndrome<Br> <input type=radio name=\\\"question\\\" value=\\\"d\\\"> Severe combined immunodeficiency disease (SCID)<br> <input type=radio name=\\\"question\\\" value=\\\"e\\\"> DiGeorge\'s syndrome<br><br></font>\";
$question2=\"<b><font color=navy size=2>2) This patient is most likely suffering from which of the following conditions?</b><Br><Br></font>\";
print(\"$question2\");
if(@$beensubmitted2) {
if($question == \"b\") {
print(\"<font color=blue face=arial><b>Correct!</b></font>\");
$page=\"samples3.php\";
$cont=\"NEXT\";
$quiz=\"\";
$q2=\"c2\";
$$q2=1;
} else {
print(\"<font color=red face=arial><b>Incorrect!</b></font>\");
$page=\"samples3.php\";
$cont=\"NEXT\";
$quiz=\"\";
$q2=\"i2\";
$$q2=1;
}
if(@\"$c2\") {
$c=$c+1;
} else {
$i=$i+1;
}
}
print(\"<form action=$page method=post>\");
print(\"</center>$quiz\");
if(@$c2) {
print(\"<input type=hidden name=\\\"c2\\\" value=$c2>\");
}
if(@$i2) {
print(\"<input type=hidden name=\\\"i2\\\" value=$i2>\");
}
print(\"<input type=hidden name=\\\"c\\\" value=$c>\");
print(\"<input type=hidden name=\\\"i\\\" value=$i>\");
print(\"<center><input type=submit value=$cont name=\\\"beensubmitted2\\\"></center>\");
print(\"</form></font><br><br>\");
print(@\"$c/$i\");
?>
</body>
and then i have a page that shows the points and final junk... this is my first php script so it might be long but it works. please help.