? How to website design?

Click Here To View All Answers...

First off, ? How to website design? Thanks for any answer. Another question I got... Hi,.

I installed the contribution "dropdown for dob". as the title says it adds a drop down for the date of birth on the create_account.php page..

This works no problem when creating an account, however, if someone signs up with a duplicate email address, it then produces this error....

Date of Birth:.

Fatal error: [] operator not supported for strings in /home/buzzshop/public_html/create_account.php on line 378.

The line it refers to is:.

<td class="main">.


For ($i=1; $i<32; $i++) {.

Line378: $dob_day[] = array('id' => sprintf('%02d', $i), 'text' => sprintf('%02d', $i));.


For ($i=1; $i<13; $i++) {.

$dob_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B',mktime(0,0,0,$i,1,2000)));.


$today = getdate();.

$first_year = $today['year'] - 77;.

$last_year = $today['year'] - 10;.

For ($i=$first_year; $i < $last_year; $i++) {.

$dob_year[] = array('id' => sprintf('%02d', $i), 'text' => sprintf('%02d', $i));.


Echo tep_draw_pull_down_menu('dob_day', $dob_day);.

Echo tep_draw_pull_down_menu('dob_month', $dob_month);.

Echo tep_draw_pull_down_menu('dob_year', $dob_year);.

Echo tep_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="inputRequirement">'ENTRY_DATE_OF_BIRTH_TEXT'</span>': '';.



That code replaced this original code in the create_account.php page, which was:.

<! <td class="main"><?php echo tep_draw_input_field('dob')'&nbsp;'(tep_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="inputRequirement">'ENTRY_DATE_OF_BIRTH_TEXT'</span>': ''); ?></td> >.

This is a link to the contribution.


Can anyone help me find out whats going wrong please?.

This post has been edited by.


: 29 August 2004, 10:54..

Comments (5)

I'm stumped. I'm not so sure what is the answer to your question. I'll do some Googling and get back to you if I got an useful answer. You should email the people at iPage as they probably could answer your iPage question..

Comment #1

This is a mega problem, can anyone lend a hand please?..

Comment #2

I also have the same problem issue.. hope someone can help us here....



Comment #3

I too have this problem. Just installed it tonight and tested it. We need a fix for this. Can anyone help?.

BTW, davestacey.

You do not have to post 5 additional times asking for help. The original post was enough...

Comment #4

After looking around, I am pretty sure it has something to do with this:.

Create_account.php - around line #31.

If (ACCOUNT_DOB == 'true') $dob = tep_db_prepare_input($HTTP_POST_VARS[dob_month]'/'$HTTP_POST_VARS[dob_day]'/'$HTTP_POST_VARS[dob_year]);.

Anyone else?.

This post has been edited by.


: 14 October 2004, 01:36..

Comment #5

Well, I have no idea, I can not figure this one out at all so I am just going to remove it until someone can come up with a fix...

Comment #6

This question was taken from a support group/message board and re-posted here so others can learn from it.