Posted 06 May 2013 - 09:13 AM
Hi,
I am trying to get into php and html a bit more so I decided to make a sudoku checker.
I know how to do the php code and I have already sorted the html tables out ( http://sudoku-checke...om/default.html ) but I have no idea how to get the data from the table into an array or equivalent in php.
Can anyone help?
Thanks in advance
I am trying to get into php and html a bit more so I decided to make a sudoku checker.
I know how to do the php code and I have already sorted the html tables out ( http://sudoku-checke...om/default.html )
Spoiler
<!DOCTYPE html>
<html>
<body>
<form action="check.php" method="post">
<table name="boxes">
<tr>
<td><table><tr><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td></tr><tr><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td></tr><tr><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td></tr></table></td>
<td><table><tr><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td></tr><tr><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td></tr><tr><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td></tr></table></td>
<td><table><tr><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td></tr><tr><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td></tr><tr><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td></tr></table></td>
</tr>
<tr>
<td><table><tr><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td></tr><tr><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td></tr><tr><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td></tr></table></td>
<td><table><tr><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td></tr><tr><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td></tr><tr><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td></tr></table></td>
<td><table><tr><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td></tr><tr><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td></tr><tr><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td></tr></table></td>
</tr>
<tr>
<td><table><tr><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td></tr><tr><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td></tr><tr><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td></tr></table></td>
<td><table><tr><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td></tr><tr><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td></tr><tr><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td></tr></table></td>
<td><table><tr><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td></tr><tr><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td></tr><tr><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td><td><input type="text" maxlength=1 size=1></td></tr></table></td>
</tr>
</table>
<input type="submit" value="Check">
</form>
</body>
</html>
Can anyone help?
Thanks in advance