Voila, j'ai travailler un peu de mon côté mais ça marche pas encore:
ex7.html ( mon forumlaire):
<html>
<head>
<title>exercice 7</title>
</head>
<body>
<form>
<form method="POST" action="ex1.php">
saisir votre nom
<input type="text" name "nom">
<input type="submit" value= envoyer>
</form>
</body>
</html>
Ensuite ex1.php ( fichier php qui va écrire dans mon test.txt)
<html>
<head>
<title> exercice 7 formulaire php </title>
</head>
<body>
<?php
$fp = fopen("test.txt","w");
$formNOM = $_POST['nom'];
fputs($fp,$formNOM);
fclose($fp);
?>
</body>
</html>
Ensuite, quand je remplit le nom et que je clique sur envoyer, ça me met ça comme erreur:
Notice: Undefined index: nom in C:\wamp\www\ex1.php on line 10