[php]Ultra PHP n00b vraagje

Pagina: 1
Acties:
  • 29 views sinds 30-01-2008

  • Alpha-sphere
  • Registratie: Januari 2001
  • Laatst online: 14-12-2021
Ik ben zojuist begonnen met PHP en heb een boek voor beginner over PHP gekocht. Maar nu loop ik toch tegen een probleempje aan.

Ik het 2 pagina's. Pagina 1 is een formulier waar ik iets invoer. Pagina 2 moet het ingevoerde weergeven.

pagina 1
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<form action="weergeven.php" method="post">
<input name="invoera" type="text">
<input type="submit">
</form>

</body>
</html>


pagina 2
code:
1
2
3
4
5
6
7
8
9
10
11
12
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<?php
echo $invoera;
?>
</body>
</html>


Volgens het boek moet ik op de tweede pagina het ingevoerde op het scherm zien.
Maar wat ik krijg is

code:
1
Notice: Undefined variable: invoera in c:\inetpub\wwwroot\weergeven.php on line 11

Assume there are no rules and it's one big free for all


  • .oisyn
  • Registratie: September 2000
  • Laatst online: 29-08 03:21

.oisyn

Moderator Devschuur®

Demotivational Speaker

pfff, dit staat toch echt in de php manual hoor
hint: iets met error reporting * klik *

Give a man a game and he'll have fun for a day. Teach a man to make games and he'll never have fun again.


Dit topic is gesloten.