<td>
if(isset($_POST["submit"]))
$sql = "UPDATE order set status='ok' where usernemr='somjai'
<FORM METHOD=POST ACTION="register.php">
< INPUT TYPE = text VALUE = ok >
<INPUT TYPE="submit" name="submit" value="ok">
</td>
<?php
if(isset($_POST[''submit])){
$sql = "UPDATE order set status='ok' where usernemr='somjai'
}
?>
<FORM METHOD=POST ACTION="register.php"> //action อาจจะเป็น <?php echo $_SERVER['PHP_SLEF']?> ก้ได้ครับ
< INPUT TYPE = text VALUE = ok >
<INPUT TYPE="submit" name="submit" value="ok">
</FORM>