Thanks for your devotion.
The insert and updates pages work fine, however the only issue is that the pages do not redirect. When I test another site using my local testing server WAMP it redirects fine. I am using my remote server for this site and links are set relative to the site.
I am posting the code for the pages
Thanks in advance