if(isSet($_POST['nazwa'])){ $strona = "<?php <head> <title>strona</title> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /> <link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\"> </head> <body> <table width=\"800\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <th background=\"img/logo.gif\" widht=\"800\" height=\"200\" valign=\"bottom\" class=\"logo\"></th> </tr> </table> <table width=\"800\" align=\"center\" bgcolor=\"#DFEECE\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <th class=\"menu\">'); $tresc = ''; } </tr> </table> <table width=\"800\" align=\"center\" bgcolor=\"#DFEECE\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <th width=\"20%\"></th> <th width=\"80%\">'); </tr> </table> <table width=\"800\" align=\"center\" bgcolor=\"#DFEECE\" cellpadding=\"0\" cellspacing=\"0\"> <tr class=\"bottom\"> <th>Wszystkie Prawa Zastrzeżone © </th> </tr> </table> </body> </html> '); ?> "; $new = fopen($_POST['link'].'.php', 'w'); $write = fwrite($new, $strona);
Tworząc nową podstronę treśc powinna być taka jak w zmiennej $strona. No wzasadzie jest, ale zmienne które powinny sie pokazać na nowej stronie czyli np. $open pokazuje się Resource id #2. Co zrobić aby ten kod zapisywał się normalnie??