<?php include('header.php');?>
<div class="maintitle">Update Terms of Use Page</div>
<?php
$act=isset($_GET['act'])?$_GET['act']:"";
 
if($act=='sub'){
	
$tms = $mysqli->escape_string($_POST['ptxt']);
	
$mysqli->query("UPDATE pages SET page='$tms' WHERE id=3");

?>
    
<div class="infomsgbox">Terms of Use Page updated successfully.</div>  

<?php }

$q=$mysqli->query("select * from pages where id=3");
$s=mysqli_fetch_assoc($q);
?>
<div class="box">
<div class="inbox">
<!--form-->
<form action="tms.php?act=sub" method="post">
<div class="pf">
<textarea class="ptxt" id="ptxt" name="ptxt" ><?php echo $s['page']?></textarea>
</div>

<div class="clear"></div>
<div class="formdiv">
<div class="sbutton"><input type="submit" id="submit" value="Update Page"/></div>
</div>
</form>
</div>
</div><!--box-->
<?php include('footer.php');?>

 