Zrobiłem tak ale nie działa... Na razie chodzi mi o samo wyświetlenie stworzonego pliku o podanej nazwie po kliknięciu w przycisk.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> <link rel="stylesheet" href="login.css"> <!--[if IE]> <link rel="stylesheet" href="badziewie.css"> <![endif]--> <script type="text/javascript"> function init() { if (!document.getElementById) return false; var f = document.getElementById('auto_off'); var u = f.elements[0]; f.setAttribute("autocomplete", "off"); u.focus(); } </script> </head> <?php $nazwa=$_POST['nazwa']; $plik = fopen($nazwa.".html","w+"); ?> <!--[if IE]> <table border="0" width="100%" height="100%"><tr><td align="center" valign="middle"> <![endif]--> <form id="auto_off" action="<? echo($nazwa); ?>.html" method="post" enctype="application/x-www-form-urlencoded"> <table border="0" cellspacing="0" cellpadding="0" width="600px"> <tr> </tr> <tr> <td> <table border="0" cellspacing="3" cellpadding="5" style="background-color:#ffffff;" width="100%"> <tr> </tr> <tr> </tr> <tr> </tr> <tr> </tr> <tr> </tr> <tr> </tr> <!--<tr> <td class="center" colspan="2"><a href="<? echo($nazwa); ?>.html">Kliknij prawym i zapisz jako.</a></td> </tr>--> </table> </td> </tr> <tr> </tr> </table> </form> <!--[if IE]> </td></tr></table> <![endif]--> </html>