fluffy_lobster, thanks for the link, it got me started
Thanks for the help WDZ. leejeffery, thanks for the link, helped me too.
And thanks to another friend, the myBB boards, and your help, its all fixed.
Other things I had to do:
I added a hidden input field,
put a code to request the id on the edit.php page
changed index to 'index' cause it was a reserved word.
Along with more syntax errors.
I have also fixed other parts of my site with a friend. Its all fixed now. So thanks for everyones help.