Forums

Newbie question... save data in table and submit

sjhapke 03 Nov, 2010
Hi All,

Skimmed the forum, but did not see this answered.

I am wanting to save the data from my form before I POST it to another site.

For some reason (maybe by design), when I enter a Submit URL, the form no longer emails or stores data to the database. When I remove the Submit URL, I can email and store to the database.

Is there an easy way to accomplish this?

Thanks,
Stephanie Vaughn Hapke
St. Louis, MO USA
GreyHead 03 Nov, 2010
Hi Stephanie,

The OnSubmit URL sends the form results directly to that URL; ChronoForms never sees it and therefore cannot send emails or save the data.

You can probably POST the data to another site using the cURL Plug-in (there are a few limitations); or you can GET it using the ReDirect plug-in.

Bob
sjhapke 04 Nov, 2010
Hi Bob!

I have done as you suggested and utilized the CURL plug-in.

It seems to have solved most of the issue, but I still have one problem...

When I complete the form and click submit, the database gets updated, the email gets sent, but I am not redirected to the entered URL (this is the URL that comes up - http://malloryrental.net/index.php?option=com_chronocontact&task=send&chronoformname=webpay&Itemid=68, the redirect URL should be - https://webservices.primerchants.com/billing/TransactionCentral/EnterTransaction.asp).

I am guessing that I am missing something along the way, as when I set the CURL plug-in to debug mode, I get the following:

[attachment=0]snip.png[/attachment].

Any tips would be greatly appreciated!

Stephanie Vaughn Hapke
St. Louis, MO USA

P.S. I got your book... thanks - it has helped a lot
GreyHead 04 Nov, 2010
Hi sjhapke,

If you need the user to be transferred there then the cURL Plug-in won't do it as far as I know. It will post the data but not transfer the user.

If you want to transfer he user and the data and the site will accept a GET transaction then you can use the ReDirect plug-in in the same way.

If you need to transfer the user and POST the data then I think that is possible with a dummy form that autosubmits. There was a thread about that a few weeks ago. Not something that I've had to do.

Bob
This topic is locked and no more replies can be posted.