[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
[an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]![]() |
![]() |
![]() |
|||||||||||||||||||||||||
|
|||||||||||||||||||||||||||
![]() |
![]() |
![]() |
Adam Sjøgren skrev:
Altså jeg har forsøgt at indsætte den der fejlmeldingsting den er der og så har jeg rette variabelnanvet i definitionen til text3 så nu ser det sådan udHvordan ser din kode ud nu?
Den giver ingen fejlmeldinger når jeg besøger siden med browseren http://www.mimoart.ooz.dk/fotofi4.php <?php ini_set("display_errors","on"); if (isset($_POST['submit'])) {$filename = "test.txt"; // Where the "name" is name of file it will create if file doesnt exist, and will write data on it.'
$text3 = "hej mon det skulle være muligt at se dette";$open = fopen($filename, "w"); //w'et gør at filen bliver overskrevet hver gang
$name = $_POST['name']; $age = $_POST['age']; $hidden = $_POST['hidden']; fwrite($open, "Name:\t$name\r"); fwrite($open, "Age:\t$age\r"); fwrite($open, "Hidden:\t$hidden\r"); fclose($open); } ?> <html> <head><title>This will be your Page's title</title> <!- You can change the title, set whatever you want ->
</head> <body> <!- Printing on page starts from here -> <!- This is a comment and will not be printed on page -> <?php echo $text3; ?>her <br> <?php echo $text3; ?>her <br> <?php echo $text3; ?>her <br> <form action="" method="POST"> Name: <input type="text" name="name" /> <br /> Age: <input type="text" name="age" /> <br /> <input type="hidden" name="hidden" value="Hello, I submitted the form" /> <input type="submit" name="submit" value="Write it !" /> </form> <!- Ending the form -> </body> </html>
![]() |
![]() |
![]() |
||||||||||||
|
||||||||||||||
![]() | ||||||||||||||
|
||||||||||||||
![]() |
![]() |
![]() |