<?php
include ('logue.php'); 
include ('entete2.php');
$newname = htmlentities ($_POST["newname"]);
if( $newname != '' ) {
$sql = "UPDATE matgraph_users SET planete='$newname' WHERE id='$planete' ";
$res = db_mysql_Query($sql)or die('erreur sql<br>'.$sql.'<br>'.mysql_error());
}

echo '<script language="javascript" type="text/javascript">
<!--
window.location.replace("apercu.php");
-->
</script>';
?>