Forums

Joomla Registration Form Resets With Errors

msreyes 13 May, 2009
I followed the tutorial on a new Joomla Registration page - works well. But have a question about form errors.

1. I have a password check and email check - they work:

<?php
global $mainframe;
if ( JRequest::getVar('password') != JRequest::getVar('passwordconfirm') )
return 'Sorry, your passwords do not match, please try again!';

if ( JRequest::getVar('email_address') != JRequest::getVar('email_address2') )
return 'Sorry, your email verification does not match, please try again!';
?>


But if one of these is wrong you get your error message (as you should) but the form completely resets itself and you have to fill everything back in. Is there a way to not have this happen? That is a bit of a pain for my users to have to redo everything!

Thanks.
GreyHead 13 May, 2009
Hi msreayes,

Please turn on 'Try to Republish' - on the AntiSpam tab I think.

Bob
msreyes 13 May, 2009
Tried that, no luck😟
GreyHead 14 May, 2009
Hi msreyes,

Can you post a link to the form please?

Bob
msreyes 14 May, 2009
Let me look into that.
Max_admin 14 May, 2009
Hi msreyes,

in case you have any JS errors in this page then this may not work as expected!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 18 May, 2009
Hi msreyes,

Thanks for the link - the page is loading two different versions of MooTools and JQuery so I doubt that any JavaScript will work reliably. The MooTools and JQuery libraries cannot reliably be used together.

Bob
This topic is locked and no more replies can be posted.