Mr. Ray Borduin have solved a lot for me, still remain i can not figure out to manage a one line order confirm so it updates/insert the table order record and go back to searchpage ready for a new one line order. I can only manage that when i change line 60 to ===1 instead of normal ===0 value.
Borduin have showed the right code but it does not function on my small project.


