[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
 

[Fwd: Re: <form action="<?php echo $PHP_SELF?>" method="POST">]





-------- Original Message --------
Subject: Re: <form action="<?php echo $PHP_SELF?>" method="POST">
Date: Tue, 11 Oct 2005 21:33:50 +0200 (CEST)
From: sslug@sslug
To: Jørgen Heesche <sslug@sslug>
References: <sslug@sslug>

On Tue, 11 Oct 2005, Jørgen Heesche wrote:

Og nu scriptet:

<html>
<body>

<?php
if ($submit)
{
  // process form
  $NN = $_POST["name"];
  $AGE = $_POST["age"];
  print("Welcome $NN<br>");
  print("You are $AGE  years old!<br>");
}
else
{
// display form
?>
<?php print("PHP_SELF = $PHP_SELF<br>");?>
<?php print("SERVER PHP_SELF = $_SERVER['PHP_SELF']<br>");?>
<form action="<?php echo $PHP_SELF?>" method="POST">
Enter your name: <input type="text" name="name" />
Enter your age: <input type="text" name="age" />
<input type="submit" />
</form>
<?php
} // end if
?>

</body>
</html>


jeg kan se flere fejl, men de fleste er lidt med puritanisme ;-) men

i <input type="submit" name="submit" />

altså en name, OG

if ($_POST['submit']) oppe foroven

burde hjælpe

Virtually

Niels Müller Larsen
MSc Networked Information Engineering

Erhvervsakademiet Århus Købmandsskole
Sønderhøj 30
DK8260 Viby J

Phone: +45 8936 3317
Mobile: +45 2040 5740
Web: http://x15.dk
Public key: 0xD4DB4A5E

--
Med venlig hilsen

Jørgen Heesche
mailto:sslug@sslug


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-11-01, 02:01 CET [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] *