Help with Web Form Update

Asked

Viewed 42 times

1

I am developing a CRUD system, and am having problems updating registered users. The bad thing is that my browser shows no errors.

The problem is that when I edit in some field, for example, email, where it was written [email protected]. Type [email protected]. When I click the button the email field is again [email protected], and no error message appears and it does not return to the home page.php.

The correct thing would be to leave the email field filled with [email protected] and return to the home page.php.

Below is the code with the user edition page.

From now on I appreciate your help!

For better visualization of the code, I put in Pastebin: http://pastebin.com/kAe9vHpv

From now on I appreciate your help!

1 answer

3


Dude, simple beeem problem, it is not entering the _POST condition because the name="'update'" is double-quote:

<button class="btn waves-effect waves-light" type="submit" name="'atualizar'">

exchange for:

<button class="btn waves-effect waves-light" type="submit" name="atualizar">
  • Our guy, that’s right O_o Thanks for the help and the good eye! haha

  • Yes, often it’s the least obvious mistake... @Gabriel

Browser other questions tagged

You are not signed in. Login or sign up in order to post.