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

5th Aug 2021, 6:19 AM
Ahsan Tony
Ahsan Tony - avatar
1 Answer
+ 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'
5th Aug 2021, 8:30 AM
Ipang