[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]![]() |
![]() |
![]() |
|||||||||||||||||||||||||
|
|||||||||||||||||||||||||||
![]() |
![]() |
![]() |
formen: http://www.mimoart.ooz.dk/fwrite.php check resultatet i: http://www.mimoart.ooz.dk/test.txt <?php $filename = 'test.txt'; $somecontent = "Add this to the file\n"; $text1 = "Dette er indholdet af variablen text1"; $name = $_POST['name']; // Let's make sure the file exists and is writable first. if (is_writable($filename)) { if (!$handle = fopen($filename, 'w')) { echo "Cannot open file ($filename)"; exit; } // Write $name to our opened file. if (fwrite($handle, $name) === FALSE) { echo "Cannot write to file ($filename)"; exit; } fclose($handle); } else { echo "The file $filename is not writable"; } ?> <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 -> <form action="" method="POST"> Name: <input type="text" name="name" /> <br /> <input type="submit" name="submit" value="submit" /> </form> <?php echo $text1; ?> her <br> </body> </html>
![]() |
![]() |
![]() |
||||||||||||
|
||||||||||||||
![]() | ||||||||||||||
|
||||||||||||||
![]() |
![]() |
![]() |