Forums

submit a value to another website

Legalruler 12 Oct, 2010
Hi,

I have a little problem with submitting a value to another website. The story is this: We want people to be able to pay by using Ideal (a dutch payment system), but the problem is that we have a contract with the bank for 1 domain and the website is on another domain.

So I thought about using the "Submit URL: The form's "action" URL". But how does this work? I have the first form working and the value is placed in a hidden field. How do I get the values out of it on the other website? On the other website is a chronoform where it has to connect to.

The 2nd form needs the value in javascript or by php placed in another hidden field.
GreyHead 12 Oct, 2010
Hi Legalruler ,

An interesting little problem :-(

I think you can do this with an OnSubmit URL but not directly to a ChronoForm - the security checks will block it. You can though submit to the Extra Code box of a ChronoForm and handle the submit from ther with CURL. Messy but possible.

Bob
Legalruler 14 Oct, 2010
Hi Bob,

Thanks a lot for the reply.

I ended up making my own php file and submitted the values to it.

When using the "submit url" option, does it still save the files to the database and/or send an email?

The cURL helped me solving a problem on an other website, so thanks for that😀

Legalruler
GreyHead 14 Oct, 2010
Hi Legalruler,

When using the "submit url" option, does it still save the files to the database and/or send an email?

No it doesn't. The form submission goes directly to the submit url, ChronoForms never sees it and so can't do anything with the results.

Bob
Legalruler 14 Oct, 2010
Ah thanks,

Solved it by putting a form in the onsubmit box that submits the values that i need for iDEAL to another form that submits the values to iDEAL and automated those with javascript so people dont get all the buttons in between.

Code to automaticly continue

<script type="text/javascript">
function idealmethode()
{
	var frm = document.getElementById("form1");
	frm.submit();
}
</script>

<?php
echo "<script>idealmethode();</script>";
?>
This topic is locked and no more replies can be posted.