chrometweaks.org

How do I upload my website to iPage.com?

Click Here To View All Answers...


Question I have... How do I upload my website to iPage.com? Thanks for any response. Another question on my mind: THE SECOND FUNCTION BELOW IS NOT BEING RECOGNISED - error message function not defined - anyone know what I am doing wrong or if I need to edit another file? THANX..

BACKGROUND: I am adding a new field to the customer create account process asking them where they heard about us and they can choose from a list of options..

FIRST FUNCTION CALL:.

- file create_account.php.

<?php echo tep_get_source_list('source')'&nbsp;'(tep_not_null(ENTRY_SOURCE_TEXT) ? '<span class="inputRequirement">'ENTRY_SOURCE_TEXT'</span>': ''); ?>.

FIRST FUNCTION DEFINITION AND SECOND FUNCTION CALL:.

- file includes/functions/html_output.php.

////.

// Creates a pull-down list of customer_sources.

Function tep_get_source_list($name, $selected = '', $parameters = '') {.

$sources_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));.

$sources = tep_get_sources();.

For ($i=0, $n=sizeof($sources); $i<$n; $i++) {.

$sources_array[] = array('id' => $sources[$i]['source_id'], 'text' => $sources[$i]['source_name']);.

}.

Return tep_draw_pull_down_menu($name, $sources_array, $selected, $parameters);.

}.

SECOND FUNCTION DEFINITION:.

File includes/functions/general.php.

////.

// Returns an array with source.

// TABLES: customer_source function tep_get_sources($source_id='').

{.

$sources_array = array();.

If (tep_not_null($source_id)).

{.

$sources = tep_db_query("select source_name from "TABLE_CUSTOMER_SOURCE" where source_id = '"(int)$source_id"'");.

$sources = tep_db_fetch_array($sources);.

$sources_array = array('source_name' => $sources_values['source_name']);.

}.

Else.

{.

$sources = tep_db_query("select source_id, source_name from "TABLE_CUSTOMER_SOURCE" order by source_name");.

While ($sources_values = tep_db_fetch_array($sources)).

{.

$sources_array[] = array('source_id' => $sources_values['source_id'],.

'source_name' => $sources_values['source_name']);.

}.

}.

Return $sources_array;.

}.

This post has been edited by.

Yesudo.com.

: 13 February 2004, 15:16..

Comments (7)

That's a good question. I'm not sure what is the right answer. I'll do some Googling and get back to you if I find an anything. You should email the people at iPage as they probably could give you an answer..

Comment #1

I am trying to do the same thing:.

My post.

I hope someone can figure this out for the both of us. I know I have seen this request many times. Hopefully, the work we have already done will make it easier for the pros to give us feedback rather than them having to start from scratch..

I had the same function call errors which is why I took a different approach (out of sheer ignorance)..

Comment #2

You might try breaking the function off the same line as the Commented Tables:.

From.

////.

// Returns an array with source.

// TABLES: customer_source function tep_get_sources($source_id='').

{.

To.

////.

// Returns an array with source.

// TABLES: customer_source.

Function tep_get_sources($source_id='').

{.

For starters.

Mike..

Comment #3

Yep - checkout:.

Http://www.yesudo.co...ate_account.php.

This draws the dropdown list from a table - is this what you need/want?..

Comment #4

Yes....can you please post the code/instructions...that is AWESOME.

UDAMAN..

Comment #5

Pm'd you Paul.

This post has been edited by.

Yesudo.com.

: 19 February 2004, 22:51..

Comment #6

Just to kink into other thread:.

Http://forums.oscommerce.com/index.php?sho...=0&#entry312789.

This post has been edited by.

Yesudo.com.

: 19 February 2004, 22:53..

Comment #7

Please, I am searching for this contribution for a long time..

Is it possible that you post the things what to do to make it?..

Comment #8


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