I have a site with several different forms in different sections. All of the forms point to one particular file which is designed to handle all the transactions and then redirect back using an onLoad='history.go(-1)' command in the body tag
The first time I go on the site and submit a form, it works great. The data is submitted (mailed or inserted into the database) and I'm redirected right back to where I hit the submit button from. The problem is that if I try to submit ANY form after that, it claims that it can't find the transaction file. If i refresh the cannot find screen, I get the file but it doesn't do anything with the data and it doesn't even attempt to redirect
I thought maybe this had something to do with the fact that all of the forms are pointing to the same page. (it decides what to do with the form data based on a if ($submit_<formtype>) statement) So I split up the main file into several different files, one for each form, and pointed the forms there. I had the SAME problem. I could submit the first time successfully but each time afterwards I was given a Cannot find error no matter WHAT page it was supposed to be submitting to.
Does anyone have any insight into this problem? I would really like to keep the one-file solution
If you would like to view the site, goto http://www.global-lull.com/privacy/ . It's incomplete and under construction so pardon the mess.
Thank you.