Forums

Form action: How it works ?

Ron 04 Apr, 2014
Hello

If I want to have a form action as a URL like : action="http://acbo.com/local/hart/index.php". How can I set it in Chronoform V4.

Please help

Thanks

Ron
Ron 04 Apr, 2014
Thanks calculus00

I am very happy to receive your reply. But I have tried it before coming here, I have no success.

Ron
Max_admin 04 Apr, 2014
Hi Ron,

Just click the form's name under the forms manager and paste your url under the "action url" field.

But that would completely disable any actions under the "on submit" event, no messages or emails..etc

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Ron 04 Apr, 2014
Thanks for the reply Max.But this option will not work for me as I need to have other functions working as well.

Ron
Max_admin 04 Apr, 2014
Then you can use the CURL action to submit the form data behind the scenes to the url you need ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Ron 05 Apr, 2014
Sorry Max, But I am using the Chronoform V5 and I do not find CURL. I just need to use along with all standard action an additional action : action="http://acbo.com/local/hart/index.php"

Please help

Thanks
Ron 05 Apr, 2014
Hi Max,

Can I have something like this in a custom code after email
< ?php
$doc =& JFactory::getDocument();
$custom_tag = '<meta http-equiv="refresh" content="10;url=http://acbo.com/local/hart/index.phpi" method="post" accept-charset="UTF-8" id="subscription_form" >';
$doc->addCustomTag($custom_tag);
?>


I tried it but it does not seem to work.

Please help

Thanks
Max_admin 05 Apr, 2014
Hi Ronn,

The CURL action is under the "Utilities" section in v5 setup, the code you are trying to use will just do a page redirect, it will not pass any of the form data to that url, and you could simply use the redirect action for this task!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Ron 06 Apr, 2014
Thanks Max for the reply.

I found it... I would also like to add a perl code. where do I add it.

Please help

Thanks
Max_admin 07 Apr, 2014
I'm not sure how you can run perl in php but this page may help:
http://stackoverflow.com/questions/11114277/execute-perl-in-php

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Ron 07 Apr, 2014
Hi Max,

How can I call the perl file in a php script: Maybe some example like this.

< ?php exec("/usr/bin/perl /home/user/public_html/toto/process.pl $username $password",$output); ?>


This does not work

Thanks
Ron
Max_admin 07 Apr, 2014
Answer
You can place any code inside a "custom code" action, and btw, the pp tag in your code line should be:
<?php


Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.