<html> <head> </head> <body> <?php if($send=='Wyslij') { $zapytanie = "INSERT INTO pracownicy SET zarobek='$zarobek'"; } ?> <form method="get" action="add.php"> <div align="center"> <center> <table border="1" width="50%" bordercolorlight="#000000" cellspacing="0" cellpadding="0"> <tr> <td width="50%"><font size="2" face="Verdana">Ilość:</font></td> <td width="50%" align="center"><input type="text" name="zarobek" size="20"></font></td> </table> <p align="center"><font size="2" face="Verdana"><input type="submit" value="Wyslij" name="send"><input type="reset" value="Kasuj" name="B2"></font></td> </center> </div> </form> </body> </html>
Jednakpo wpisaniu liczby w polu i zatwierdzenia nie wyskakuje żaden błąd ani nic ale w bazie też nie dodaje się ta liczba, co jest źle ? ;d