[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
 

Re: [PROGRAMMERING] Re: php variablen printer ikke



Adam Sjøgren skrev:
Hvordan ser din kode ud nu?
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 ud
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>



 
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] *