emoment Posted May 3, 2006 Posted May 3, 2006 well when you enter the dob in wrong formate this error errors comes up: Warning: checkdate() expects parameter 2 to be long, string given in /hsphere/local/home/napski/napski.com/napski/create_account.php on line 80 here is the code around 77 to 83 in add_account.php } if (ACCOUNT_DOB == 'true') { if (checkdate(substr(tep_date_raw($dob), 4, 2), substr(tep_date_raw($dob), , 2), substr(tep_date_raw($dob), 0, 4)) == false) { $error = true; $messageStack->add('create_account', ENTRY_DATE_OF_BIRTH_ERROR); } } can sumbody help
chooch Posted May 3, 2006 Posted May 3, 2006 what other contributions have you added? Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back! Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you? There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere. CHOOCH
emoment Posted May 3, 2006 Author Posted May 3, 2006 what other contributions have you added? quite a few too many to list im creating this for sumone else
chooch Posted May 3, 2006 Posted May 3, 2006 why are you expecting help when you can't even answer a simple question and list the contributions... use this line instead, just replace the whole of line 80 with this: if (checkdate(substr(tep_date_raw($dob), 4, 2), substr(tep_date_raw($dob), 6, 2), substr(tep_date_raw($dob), 0, 4)) == false) { the reason why I asked was that it may conflict with other contributions but as you won't list them I can't guarantee it won't screw up anything else Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back! Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you? There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere. CHOOCH
Recommended Posts
Archived
This topic is now archived and is closed to further replies.