Skip to content
Advertisement

Updating and deleting from a data table, warning undefined array key

I have been following a lesson on how to make an admin page. I got all the information out of my database to a table on the page. I have an update button and when I change the information and press the button I receive this error: Warning: undefined array key “WebID” in ..Update.php on line 3

From my search online everyone is trying to change the code so that if array key does not exist: return null. I tried that and the error does not appear no more, but the table does not change.

Any thoughts?

This is the code:

JavaScript
JavaScript

Html file used to update:

JavaScript

Advertisement

Answer

you have to write the form action like this.. you missed the = sign

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement