0
How to update a table using php mysql
I want to update my category table but my form is not working. The code works well but when i click the submit button it refreshes itself and return to the prevoius situation. Please help me I am a new learner https://code.sololearn.com/w9h5WVL20980/?ref=app
1 Respuesta
+ 1
Maybe because the submit button at line 29 has its name 'sumbit'.
PHP doesn't find any form data by the name 'submit' because you have a type setting its 'name' attribute.
if( isset( $_POST[ 'submit' ] ) ) // no 'submit'