Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP][HTML]Niepoprawne wyświetlanie formularza
Pudi
post
Post #1





Grupa: Zarejestrowani
Postów: 76
Pomógł: 0
Dołączył: 3.03.2009
Skąd: WLKP

Ostrzeżenie: (10%)
X----


co moze byc zle na paczatku dobrze wyswietla formularz ale zas zle
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;
?>


Ten post edytował batman 29.04.2009, 14:07:15
Powód edycji: poprawiłem tytuł ~batman
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 11:13