Debuter en formulaire php
Bonjour,
Pourriez-vous m'aider, je ne sais pas pourquoi il m'arrive :
Code:
1 2 3 4 5 6 7
|
Nom :
Prénom :
Notice: Undefined index: prenom in C:\Documents and Settings\Afifa\Bureau\ahmed\hello_world_html.php.php on line 11
Notice: Undefined index: nom in C:\Documents and Settings\Afifa\Bureau\ahmed\hello_world_html.php.php on line 12
Bonjour |
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
<head>
<title>Hello World</title>
</head>
<body>
<form method="post" action="verif.php">
Nom : <input type="text" name="nom" size="12"><br>
Prénom : <input type="text" name="prenom" size="12">
<input type="submit" value="OK">
<?php
$prenom = $_POST['prenom'];
$nom = $_POST['nom'];
print("<center>Bonjour $prenom $nom</center>");
?>
</body>
</html> |