sorry dude im out of idea, but thats the only possible error i could think of, coz when i examined your code, i noticed that at first it lacking the closing parenthesis of the jfunc() function, the code look like this
Thanks a lot vaultdweller123 for all the help the past few days. This is my first attempt at php so has been a learning experience. I was able to finally get it working wit the below syntax. I have to work on the way it refreshes as it doesn't post the new result until I refresh the screen but after I do the new value is posted so I'm ok with that for now. Again thanks for the help.