sempastian
Mar 25th 2009, 9:19 am
hello all.i am making a multiple choice quiz in my website.so far i wrote some code in php i made the form with the questions and the connection to mysql.but am stuck now and i have no idea what to do next.here is the code i wrote so far
<?php
$connection = mysql_connect("server", "name", "password");
// select database
mysql_select_db("db_db") or die ('Unable to select database!');
?>
<form id="form1" name="form1" method="post" action="">
<p>1. When was the eiffel tower build?</p>
<p align="left">
<input type="checkbox" name="checkbox" value="checkbox" />
1889 </p>
<p align="left">
<input type="checkbox" name="checkbox2" value="checkbox" />
1800</p>
<p>
<input type="checkbox" name="checkbox3" value="checkbox" />
1900</p>
<p>
<input type="checkbox" name="checkbox4" value="checkbox" />
1930</p>
<p> </p>
<p>2. When was the French Revolution?</p>
<p>
<input type="checkbox" name="checkbox5" value="checkbox" />
1800</p>
<p>
<input type="checkbox" name="checkbox6" value="checkbox" />
1700</p>
<p>
<input type="checkbox" name="checkbox7" value="checkbox" />
1789</p>
<p>
<input type="checkbox" name="checkbox8" value="checkbox" />
1750</p>
<p align="center">
<input type="submit" name="Submit" value="Submit" />
</p>
</form>
</body>
</html>
i only put two questions so far but i would like some help on what to do next.
thank you
<?php
$connection = mysql_connect("server", "name", "password");
// select database
mysql_select_db("db_db") or die ('Unable to select database!');
?>
<form id="form1" name="form1" method="post" action="">
<p>1. When was the eiffel tower build?</p>
<p align="left">
<input type="checkbox" name="checkbox" value="checkbox" />
1889 </p>
<p align="left">
<input type="checkbox" name="checkbox2" value="checkbox" />
1800</p>
<p>
<input type="checkbox" name="checkbox3" value="checkbox" />
1900</p>
<p>
<input type="checkbox" name="checkbox4" value="checkbox" />
1930</p>
<p> </p>
<p>2. When was the French Revolution?</p>
<p>
<input type="checkbox" name="checkbox5" value="checkbox" />
1800</p>
<p>
<input type="checkbox" name="checkbox6" value="checkbox" />
1700</p>
<p>
<input type="checkbox" name="checkbox7" value="checkbox" />
1789</p>
<p>
<input type="checkbox" name="checkbox8" value="checkbox" />
1750</p>
<p align="center">
<input type="submit" name="Submit" value="Submit" />
</p>
</form>
</body>
</html>
i only put two questions so far but i would like some help on what to do next.
thank you