gpt4 book ai didi

javascript - AWEBER JavaScript 集成

转载 作者:行者123 更新时间:2023-11-28 02:37:25 24 4
gpt4 key购买 nike

我有 2 个原始 aweber html 代码,它们位于不同的帐户中。现在我想要这两个原始代码的 1 个注册表单。意味着当有人在我的表格上注册时,电子邮件应该保存在我的两个列表中。但我遇到了如何集成这两个代码的问题。当我删除 1 个表单时,它仅适用于 1 个列表,但是当我集成这两个表单时,它不会在两个列表上保存任何电子邮件。

这是我的代码,抱歉我的编码很糟糕,我是 javascript 新手,我正在努力解决这个问题希望有人可以帮助我。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<!--1st-->
<script language="javascript">
function copy_fields(){
<!--document.getElementById('name1').value = document.getElementById('name').value;
document.getElementById('from1').value = document.getElementById('email').value;
}
function validate(){
var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if((document.submail.email.value=='')||(document.submail.email.value=='Email Address'))
{alert('Please Enter Email Address'); return false;}
if (!filter.test(document.submail.email.value))
{alert('Please Enter A Valid Email'); return false;}

document.getElementById('sub9').className='gray_out';
document.getElementById('sub9').disabled='true';

copy_fields();
document.form2.submit();
setTimeout('document.submail.submit()',3000);
}
</script>
<style type="text/css">
.gray_out {
filter:alpha(opacity=40);
-moz-opacity:.40;
opacity:.40;
}
</style>
<!--END 1st-->

<!--2nd-->
<script language="javascript">
function copy_fields1(){
<!--document.getElementById('name1').value = document.getElementById('name').value;
document.getElementById('from1').value = document.getElementById('email').value;
}
function validate1(){
var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if((document.submail.email.value=='')||(document.submail.email.value=='Email Address'))
{alert('Please Enter Email Address'); return false;}
if (!filter.test(document.submail.email.value))
{alert('Please Enter A Valid Email'); return false;}

document.getElementById('sub9').className='gray_out';
document.getElementById('sub9').disabled='true';

copy_fields1();
document.form1.submit();
setTimeout('document.submail.submit()',3000);

}
</script>
<style type="text/css">
.gray_out {
filter:alpha(opacity=40);
-moz-opacity:.40;
opacity:.40;
}
</style>
<!--END 2nd-->

</head>
<body>

<form name="submail" method="post" action="http://empowerauthoritypro.com/commission-loophole-ninja" >
<input type="hidden" name="go" value="now" />
<!-- First Name:<br />
<input id="name" type="text" name="name" value="First Name" onclick="if(this.value=='First Name') this.value=''" class="text-field" /><br />-->
Email:<br />
<input id="email" type="text" name="email" value="Email Address" onclick="if(this.value=='Email Address') this.value=''" class="text-field" />
<!--<a href="#" onclick="return validate();" id="sub9">Optin Now</a>-->
<input type="button" id="sub9" value="Submit" onClick='window.open(validate1())' />
</form>



<!--1st has email requirement only-->
<form name="form2" method="post" action="http://www.aweber.com/scripts/addlead.pl" target="iframe" style="display:none">
<input type="hidden" name="meta_web_form_id" value="1817364894" />
<input type="hidden" name="meta_split_id" value="" />
<input type="hidden" name="listname" value="dummylistshaq" />
<input type="hidden" name="redirect" value="http://www.aweber.com/thankyou.htm?m=default" /><input type="hidden" name="meta_adtracking" value="ninjatest" />
<input type="hidden" name="meta_message" value="1" />
<input type="hidden" name="meta_required" value="email" />
<input type="hidden" name="meta_tooltip" value="" />
<div style="display:none">
<img src="http://forms.aweber.com/form/displays.htm?id=jByM7MxsLBycLA==" alt="" width="1" height="1" />
</div>
<input type="text" name="email" id="from1" value="" size="20">
</form>
<iframe name="iframe" style="display:none"></iframe>
<!--END 1st-->

<!--2nd has name and email requirement but i have compromise the name to be hide-->
<form name="form1" method="post" action="http://www.aweber.com/scripts/addlead.pl" target="iframe" style="display:none">
<input type="hidden" name="meta_web_form_id" value="1376972149" />
<input type="hidden" name="meta_split_id" value="" />
<input type="hidden" name="listname" value="optinninja1" />
<input type="hidden" name="redirect" value="http://www.aweber.com/thankyou.htm?m=default" /><input type="hidden" name="meta_adtracking" value="ninjaoptin" /><input type="hidden" name="meta_message" value="1" />
<input type="hidden" name="meta_required" value="name,email" />
<input type="hidden" name="meta_tooltip" value="" />
<div style="display:none">
<img src="http://forms.aweber.com/form/displays.htm?id=jMzsbJzsTIwsnA==" alt="" width="1" height="1" />
</div>
<input type="hidden" name="name" id="name1" value="" size="20">
<input type="text" name="email" id="from1" value="" size="20">
</form>
<iframe name="iframe" style="display:none"></iframe>
<!--END 2nd-->


</body>
</html>

最佳答案

将多个服务与 AWeber 列表集成的更好(且 AWeber 支持)的方法是使用 AWeber API。

另一种可能是在您自己的网站上设置一个 PHP 页面,将其设置为您的 AWeber 表单的“感谢页面”,并对您的 PHP 进行编码以利用“传递订户数据”功能:

https://help.aweber.com/entries/21775518-how-do-i-pass-form-data-to-my-thank-you-pages

我对您想要的工作流程有点困惑。您提到提交到两个 AWeber 列表,但您的代码中还有第三种表单可以发布到第三方。

我强烈建议您与 AWeber 客户解决方案联系,他们将能够更全面地满足您的需求。只需发送电子邮件至 help@aweber.com 或访问 https://www.aweber.com/contact-us.htm团队成员将进行深入研究。

关于javascript - AWEBER JavaScript 集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13276706/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com