[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]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

php variablen printer ikke



Hej
Er der nogen som kan forklare mig hvorfor variablen som hedder "text1" ikke vil printe noget i selve filen her? og hvad jeg evt kan gøre ved problemet?

programmet ligger online her
http://mimoart.ooz.dk/fotofi4.php


/Mikkel


<?php
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.'
$text1 = "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>



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2010-09-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *