Kod
<?
$pole = $_POST['pole'];
$pole2 = $_POST['pole2'];
$pole3 = $_POST['pole3'];
$pole4 = $_POST['pole4'];
$file = ("users/$pole.php");
if(file_exists($file)):
echo("Mamy juz taki plik :)!");
else:
$ciag = "
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<title> $pole2 </title>
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-2">
<link rel="stylesheet" href="style.css" type="text/css">
<table border="0" width="800" cellpadding="0" cellspacing="2" align="center">
<td class="t" colspan="3">
Dzis Jest
</ul>
<tr>
<td class="top" colspan="3"></td>
</tr>
<tr>
<td class="t" colspan="3">
1 Menu
</ul>
</td>
</tr>
<tr>
<td valign="top">
<table cellpadding="0" cellspacing="0" class="brd">
<tr><td class="m">Menu główne</td></tr>
<tr><td><div class="linki">
</div>
</td></tr>
</table>
<BR>
<table cellpadding="0" cellspacing="0" class="brd">
<tr><td class="m">Informacje</td></tr>
<tr><td><div class="linki">
</div>
</td></tr>
</table>
</td>
<td valign="top">
<table cellpadding="0" cellspacing="0" class="brd">
<tr><td class="m2">Newsy</td></tr>
<tr><td width="390"><div class="newsy">
$pole3
</div>
</td></tr>
</table>
</td>
<TR>
<td class="stopka" colspan="3">
</td>
</tr>
</table>
</body>
</html>";
$zapis = str_replace("$ "," $",$ciag);
$open = fopen("$file", "w+");
fputs($open, $zapis);
fclose($open);
echo header("Location: index.php");
endif;
?>
$pole = $_POST['pole'];
$pole2 = $_POST['pole2'];
$pole3 = $_POST['pole3'];
$pole4 = $_POST['pole4'];
$file = ("users/$pole.php");
if(file_exists($file)):
echo("Mamy juz taki plik :)!");
else:
$ciag = "
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<title> $pole2 </title>
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-2">
<link rel="stylesheet" href="style.css" type="text/css">
<table border="0" width="800" cellpadding="0" cellspacing="2" align="center">
<td class="t" colspan="3">
Dzis Jest
</ul>
<tr>
<td class="top" colspan="3"></td>
</tr>
<tr>
<td class="t" colspan="3">
1 Menu
</ul>
</td>
</tr>
<tr>
<td valign="top">
<table cellpadding="0" cellspacing="0" class="brd">
<tr><td class="m">Menu główne</td></tr>
<tr><td><div class="linki">
</div>
</td></tr>
</table>
<BR>
<table cellpadding="0" cellspacing="0" class="brd">
<tr><td class="m">Informacje</td></tr>
<tr><td><div class="linki">
</div>
</td></tr>
</table>
</td>
<td valign="top">
<table cellpadding="0" cellspacing="0" class="brd">
<tr><td class="m2">Newsy</td></tr>
<tr><td width="390"><div class="newsy">
$pole3
</div>
</td></tr>
</table>
</td>
<TR>
<td class="stopka" colspan="3">
</td>
</tr>
</table>
</body>
</html>";
$zapis = str_replace("$ "," $",$ciag);
$open = fopen("$file", "w+");
fputs($open, $zapis);
fclose($open);
echo header("Location: index.php");
endif;
?>