ciao a tutti. sto cercando di imparare il php. Per esercizio sto provando a realizzare un semplice e banale sistema di registrazione, facendo due file registrazione.php e registrazione2.php
registrazione.php
Codice PHP:
<html>     <body>     <form name="Registrazione" metohd="POST" action="registrazione2.php">     nome: <input type:"text" name="nome">
     
cognome:<input type="text" name="cognome">
     
password:<input type="password" name="password">
     <
button>Registrati</button>     </body> </html
registrazion2.php
Codice PHP:
<?php $connessione=mysql_connect("localhost","root",""); $selezione=mysql_select_db("utenti",$connessione); $nome=$_POST['nome']; $cognome=$_POST['cognome']; $password=$_POST['password']; $reg="INSERT INTO 'utenti' VALUES('$nome','$cognome','$password','')"; if($reg==1){echo "Registrazione riuscita";}     else{echo "errore";} ?>
dopo che immetto i dati mi dà questo errore:

Notice: Undefined index: nome in C:\wamp\www\registrazione2.php on line 4

Notice: Undefined index: cognome in C:\wamp\www\registrazione2.php on line 5

Notice: Undefined index: password in C:\wamp\www\registrazione2.php on line 6

perchè mi accade questo?