Basically I have a detailed from to capture lead data, and I have it sending and saving to the database.
My final piece is to use the name and email from the form to signup the lead to our Yanc engine if they select to be added to our newsletter.
I have tried a few different methods I read in other posts to no avail, will this require some custom php code in order to achieve these results?
Thanks in advance,
Shawn
My final piece is to use the name and email from the form to signup the lead to our Yanc engine if they select to be added to our newsletter.
I have tried a few different methods I read in other posts to no avail, will this require some custom php code in order to achieve these results?
Thanks in advance,
Shawn
Hi Shawn,
Probably a little. I don't know anything about Yanc, do they have any 'click on a link' or 'sign-up' module options? These will often give you the code you need to set ChronoForms up.
Bob
Probably a little. I don't know anything about Yanc, do they have any 'click on a link' or 'sign-up' module options? These will often give you the code you need to set ChronoForms up.
Bob
Thanks for your quick response Bob.
Here is the link to yanc demo.
Here is the html code from the signup module:
Thoughts?
Here is the link to yanc demo.
Here is the html code from the signup module:
<table width="100%" border="0" cellspacing="0"
cellpadding="0" align="center" class="yancmoduletable">
<tr>
<td>
<form method="post" action="index.php?option=yanc&Itemid=0"
name="yancMod">
<input type="hidden" name="listid" value="1" />
<input type="text" name="name" value="Name"
class="inputbox" size="20" onFocus=doClear(this)> <br />
<input type="text" name="email" value="Email Address"
class="inputbox" size="20" onFocus=doClear(this)> <br />
<input name="html" type="hidden" value="1" />
<input type="hidden" name="yancAction" value="subscribe" />
<input type="image" src="images/sandman/submit_mail_list.gif"
onclick="return changeAction();"/>
<br>
</form>
</td>
</tr>
</table>
When I first tried sending the form using the post url, index.php?option=yanc&Itemid=0 it redirected, but didn't send the detailed email on the signup form.
Thoughts?
Hi sirsonic,
There are only a few interesting bits in there:
index.php?option=yanc&name=test_name&email=user@example.com&html=1&yancAction=subscribe
With luck this will create a new entry. Once you've got this debugged I'd probably use the Chronoforms Redirect url to do the signup. Leave it blank in the Form URL's tab and recreate it in one of the OnSubmit boxes. Here's an example for a different newsletter module:
There are only a few interesting bits in there:
name="listid" value="1"
name="name" value="Name"
name="email" value="Email Address"
type="html" value="1"
name="yancAction" value="subscribe"
index.php?option=yanc&name=test_name&email=user@example.com&html=1&yancAction=subscribe
With luck this will create a new entry. Once you've got this debugged I'd probably use the Chronoforms Redirect url to do the signup. Leave it blank in the Form URL's tab and recreate it in one of the OnSubmit boxes. Here's an example for a different newsletter module:
<?php
// construct a single name for AcaJoom
$vorname = JRequest::getVar( 'vorname', '', 'post', 'string', '' );
$nachname = JRequest::getVar( 'nachname', '', 'post', 'string', '' );
$email = JRequest::getVar( 'email', '', 'post', 'string', '' );
$name = urlencode($vorname." ".$nachname);
// JRequest::setVar( 'name', $vorname." ".$nachname );
// Build a redirect url to pass the info to Acajoom
$redirect_url = "index.php?option=com_acajoom&Itemid=&subscribed[1]=1&sub_list_id[1]=1&acc_level[1]=29&receive_html=1&act=subscribe&listname=1";
$redirect_url .= "&name=$name&email=$email";
$rows[0]->redirecturl = $redirect_url;
?>
Bob
This topic is locked and no more replies can be posted.