I fixed it a bit...It now moves onto the next word but when it tests to see if you got it right, it tests it for the next word. SO to make it say "RIGHT" you have to type the answer to the next question in!
Here it is:
<? include('header.php'); ?>
<tr>
<td>
<div id="form"><form name="ad" action="index.php" method="POST">
<table width="50%" border="0px" cellspacing="0" cellpadding="5" align="center">
<p align="center"><font size="15px"><b>
<?
if ($_POST['id'] == '')
{
$id = 1;
}
else
{
$id = $_POST['id']+1;
}
require('config.php');
$sql = "SELECT * FROM tb_vb1 WHERE id='$id'";
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
$lat = $row["lat"];
$eng = $row["eng"];
mysql_close($con);
echo "What is the English for $lat?";
if ($_POST['eng'] == $eng)
{
echo ' RIGHT!';
}
else
{
echo ' Wrong!';
}
?>
</b></font></p>
<tr>
<td width="100%" align="center" valign="bottom"><input type="text" name="eng" size="40" class="field" value="<? echo "$eng" ?>"></td>
</tr>
<input type=hidden value="<? echo "$id"; ?>" name="id" >
<tr>
<td width="100%" align="center" valign="bottom"><input type=submit value="Submit Your Answer" name="submit" class="form">
</td>
</tr>
</table>
</tr>
</td>
</table>
</form>
</body>
</html>
Thanks...