[citation=2699,1][nom]Bitman1er a écrit[/nom]le code de ouf :
[cpp]<html>
<body>
<form method="post" action="zob.php">Entrez votre phrase : <input type="text" name="prout" size="50">
<input type="submit" value="Yeah !">
</form>
</body>
</html>
[/cpp]
[cpp]<?
$prout = $_POST['prout'];
print("<center>$prout</center>");
?>[/cpp]
[/citation]
[cpp]
if ( $_POST['submit'] ) {
$prout = stripslashes($_POST['prout']);
echo '<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>' . $prout . '</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<style type="text/css">
.borduresarace
{
border-style:solid;
border-width:1px;
border-color:#CDC9BF;
}
</style>
</head>
<body bgcolor="#FFFFFF">
<br /><br /><br />
<table width="100%" border="0">
<tr>
<td align="center">
<table width="50%" cellspacing="0" cellpadding="0" class="borduresarace">
<tr>
<td bgcolor="#FFFFFF" align="center">
<font face="Arial" size="4" color="#000066">' . $prout . '</font>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>';
} else {
?>
<html>
<body>
<form method="post" action="zob.php">Entrez votre phrase : <input type="text" name="prout" size="50">
<input type="submit" value="Yeah !">
</form>
</body>
</html>
<?
}
?>[/cpp]
brut de fonderie là