Unfortunately, the username and password you have entered do not match!

Registration

Unfortunately, this username is already taken!

Unfortunately, this e-mail address is already used!

Please retype the verification code.

All fields are required

Script called on form prcoess in NOT working

Welcome, Guest
Username Password: Remember me

Script called on form prcoess in NOT working
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Script called on form prcoess in NOT working

Script called on form prcoess in NOT working 1 year, 5 months ago #11239

  • matej
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hello,

I had a script that I wanted to run, which basically sends data to another website.But as soon as I click submit, it is directly running rs forms function before executing the script.Here is the script. Can anybody tell me what the problem might be?

function CallURL($url)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_FRESH_CONNECT, 1);
curl_setopt($ch,CURLOPT_RETURNTRANSFER, 1);
$out = curl_exec($ch);
curl_close($ch);
return $out;
}

if ($_POST['form']['Submit']=='Submit' )
{
$url = "demo.website.com/joomla_create_company_l...amp;user_name="$_POST['form']['Company_Name'];
$result = CallURL($url);

if ($result == 'Error' ) die();
else if ($result == 'Ok' )
{
$comp = "demo.website.com/joomla_create_company_l...?company_name="$_POST['form']['Company_Name']."&user_name="$_POST['form']['Company_Email']."&company_admin_email="$_POST['form']['Company_Email']."&password="$_POST['form']['C_Password'];
$companyID = CallURL($comp);

print $companyID;
}
}

Re:Script called on form prcoess in NOT working 1 year, 5 months ago #11260

Had exactly the same problem - please let me know if you sort this out

Re:Script called on form prcoess in NOT working 1 year, 4 months ago #11447

All works fine now apart from select lists which are not passing the data across to the CRM and i think this is because of the additional [] generated in RSFormPro. eg text fields have format Form[name] and select lists have Form[country][] . Is there a way i can lose the brackets? The receiving field in the CRM will not accept these characters and would need to just be named country.

Any help would be gladly received

Re:Script called on form prcoess in NOT working 6 hours, 1 minute ago #0

Hello,
This is an automatically generated message.
We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you wish to receive our support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here: http://www.rsjoomla.com/support-policy.html.

Thank You!
PLEASE NOTE: This topic is NOT locked and you can add replies to it. Other users are free to reply as well. This message has been generated by a bot and has no effect on the topic whatsoever.
  • Page:
  • 1
Moderators: alex, alexp, octavian, bogdanc, andreic
Time to create page: 0.74 seconds
Feedback