Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

add account error please help


emoment

Recommended Posts

Posted

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

Posted

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

Posted
what other contributions have you added?

 

quite a few

 

too many to list im creating this for sumone else

Posted

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...