Having a issue getting capya to work.
i plugin my code and hit summit the code it keep.. <-first problem fixed. but the secound and
so far hard to fix is when loads on website capya works but when summit is clicked it doesn't
summit. It does do anything. But if the code is put into a html page it works fine... just not coded into joomla.
Code:
<p>Sign up today for the SpeakSTRONG Newsletter and get some seriously useful and practical bonus resources. Just what any true seeker of communication excellence needs.</p>
<p>The SpeakStrong Newsletter will update you on SpeakStrong events. Also, subscribe to my blog
<a href="index.php?option=com_content&view=section&layout=blog&id=7&Itemid=183"> </a>for tips, phrases and communication ideas.</p>
<p>
<span style="font-size: 15px; line-height: 15px;">Your SpeakSTRONG Journey begins here.</span>
</p>
<hr />
<table cellpadding="20">
<tbody>
<tr valign="top">
<td>
<p>The newsletter will keep you up to date on new book realeases, webinars and other SpeakStrong activities.</p>
<p>Plus it comes with bonuses that are my very best stuff, distilled down into immediately useful tools.</p>
<p></p>
</td>
<td>
<form action="
www.mcssl.com/app/contactsave.asp
" method="post" name="form1">
<input id="merchantid" type="hidden" name="merchantid" value="103443" />
<input id="ARThankyouURL" type="hidden" name="ARThankyouURL" value="
www.speakstrong.com/thanks/219-subscriber-page
" />
<input id="copyarresponse" type="hidden" name="copyarresponse" value="1" />
<input id="custom" type="hidden" name="custom" value="0" />
<input id="defaultar" type="hidden" name="defaultar" value="248733" />
<input id="allowmulti" type="hidden" name="allowmulti" value="0" />
<input id="visiblefields" type="hidden" name="visiblefields" value="Name,Email1" />
<input id="requiredfields" type="hidden" name="requiredfields" value="Email1" />
<table>
<tbody>
<tr>
<td>Name</td>
<td>
<input type="text" name="Name" size="40" />
</td>
</tr>
<tr>
<td>Email</td>
<td>
<input type="text" name="Email1" size="40" />
</td>
<p style="text-align: center;"></p></td>
</tr>
</tbody>
</table>
<hr />
<p> </p>
<hr />
<p>Get updates about SpeakStrong activities. And subscribe to my blog for communication tips and pointers.</p>
<script type="text/javascript">
//Generates the captcha function
var a = Math.ceil(Math.random() * 9)+ '';
var b = Math.ceil(Math.random() * 9)+ '';
var c = Math.ceil(Math.random() * 9)+ '';
var d = Math.ceil(Math.random() * 9)+ '';
var e = Math.ceil(Math.random() * 9)+ '';
var code = a + b + c + d + e;
document.getElementById("txtCaptcha").value = code;
document.getElementById("txtCaptchaDiv").innerHTML= code;
</script>
<script type="text/javascript">
function checkform(theform){
var why = "";
if(theform.txtInput.value == ""){
why += "Security code should not be empty.\n";
}
if(theform.txtInput.value != ""){
if(ValidCaptcha(theform.txtInput.value) == false){
why += "Security code did not match.\n";
}
}
if(why != ""){
alert(why);
return;
}
}
// Validate the Entered input aganist the generatedsecurity code function
function ValidCaptcha(){
var str1 = removeSpaces(document.getElementById('txtCaptcha').value);
var str2 = removeSpaces(document.getElementById('txtInput').value);
if (str1 == str2){
document.form1.submit();
return;
}else{
return false;
}
}
// Remove the spaces from the entered and generatedcode
function removeSpaces(string){
return string.split(' ').join('');
}
</script>