Hello all,
I am currently trying to use the newest version of ChronoForms(RC 5.0) on a website powered by Joomla 1.5 and I am having trouble with the built in form validation. None of it works. I have created a really small form with one text field that is required and is also supposed to validate for email. The link to this form follows:
http://www.hamjoomla.com/index.php?option=com_chronocontact&task=send&chronoformname=test3&Itemid=71
I also have some screenshots of my current configuration for the form as well as the error that appears for me on the actual site that i will post towards the bottom.
My main question is "Why does the built in form validation tools not work?" I use the form wizard to create the forms. Also, I have went as far as to write my own simple php validation script to be used to validate the email using the server side validation option. This code works, however, if the text input does not validate I get a funky error on my screen. Any help with this will be greatly appreciated.
I am currently trying to use the newest version of ChronoForms(RC 5.0) on a website powered by Joomla 1.5 and I am having trouble with the built in form validation. None of it works. I have created a really small form with one text field that is required and is also supposed to validate for email. The link to this form follows:
http://www.hamjoomla.com/index.php?option=com_chronocontact&task=send&chronoformname=test3&Itemid=71
I also have some screenshots of my current configuration for the form as well as the error that appears for me on the actual site that i will post towards the bottom.
My main question is "Why does the built in form validation tools not work?" I use the form wizard to create the forms. Also, I have went as far as to write my own simple php validation script to be used to validate the email using the server side validation option. This code works, however, if the text input does not validate I get a funky error on my screen. Any help with this will be greatly appreciated.
here is the last screen. Also, this is the code block that I am using for the server side validation:
<?php
$name = $_POST['name2'];
if(checkEmail($name)==FALSE){
return 'ENTER A REAL EMAIL!!!';
}
function checkEmail($email)
{
if(eregi("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$]", $email))
{
return FALSE;
}
list($Username, $Domain) = split("@",$email);
if(getmxrr($Domain, $MXHost))
{
return TRUE;
}
else
{
if(fsockopen($Domain, 25, $errno, $errstr, 30))
{
return TRUE;
}
else
{
return FALSE;
}
}
}
?>
Hi spetz,
You have Enable Validation set to *No* in one of those images, that may be why the client side validation isn't working.
The Fsock Warnings seem to be coming from your server-side validation code
Bob
You have Enable Validation set to *No* in one of those images, that may be why the client side validation isn't working.
The Fsock Warnings seem to be coming from your server-side validation code
if(fsockopen($Domain, 25, $errno, $errstr, 30))
Bob
Hi Bob,
Thanks for the reply. Sorry, I took that screen when I was still trying to use the server side validation. The built in validation does not work, even with validation turned on. I am turning the built in validation back on, so if you follow the link i posted earlier you can see that it does not validate.
Thanks for the reply. Sorry, I took that screen when I was still trying to use the server side validation. The built in validation does not work, even with validation turned on. I am turning the built in validation back on, so if you follow the link i posted earlier you can see that it does not validate.
Hi spetz,
You have JQuery loading on the page, JQuery and Mootools (the standard Joomla Javascript framework) don't work together.
The validation library itself might work alongside JQuery but the code used to add the tests to the form fields won't.
Bob
You have JQuery loading on the page, JQuery and Mootools (the standard Joomla Javascript framework) don't work together.
The validation library itself might work alongside JQuery but the code used to add the tests to the form fields won't.
Bob
This topic is locked and no more replies can be posted.