Chris.55
March 2nd, 2004, 01:46 PM
I have a membership form which includes a lot of extra fields which need to be passed back for unrelated processing and I assumed the answer to ?t=233 would serve my purpose. i.e. send a form with show_cart=1 and add_to_cart=1 set and the relevant other fields which are references to the product database. But there are several problems.
1. I first tried include-ing the main shop page in my php file which does the other processing. This mostly worked ok, but when you click on any of the links in the page, they don't go to main shop page but to the application form script, which I didn't really want. I could I suppose test for that and keep my bit quiet if it didn't come from where I expect, but it seems odd and I don't know if the latter stages of checkout will work properly.
The problem is that the form fields on the Squirrelcart pages have an action="" parameter, so it simply picks up the URL of the file that's being processed.
2. I tried doing a redirect from my script but of course it doesn't pick up the form variables.
Is there any way of a PHP script "submitting a form" to another URL?
Or is there some other way of coping with this?
Chris :confused:
1. I first tried include-ing the main shop page in my php file which does the other processing. This mostly worked ok, but when you click on any of the links in the page, they don't go to main shop page but to the application form script, which I didn't really want. I could I suppose test for that and keep my bit quiet if it didn't come from where I expect, but it seems odd and I don't know if the latter stages of checkout will work properly.
The problem is that the form fields on the Squirrelcart pages have an action="" parameter, so it simply picks up the URL of the file that's being processed.
2. I tried doing a redirect from my script but of course it doesn't pick up the form variables.
Is there any way of a PHP script "submitting a form" to another URL?
Or is there some other way of coping with this?
Chris :confused: