Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

adding a questionnaire on signup


pronane

Recommended Posts

Posted

is there a contribution out, to add a new table to the database, so that when a user signs up you can ask the question: "where did you hear about us?" and there is a dropdown list with all possible people and possibly an "other" option in the dropdown list, so that a textbox gets populate if they select other....to find out where the customer heard about the site?

 

is there something already out there?

 

 

Thanks as always!!

 

Paul :)

Posted
got it sorry, couldnt find it originally:

 

http://www.oscommerce.com/community/contributions,2159/

 

 

what does it mean in the contribution:

 

Look for: (around line 54)

$password = tep_db_prepare_input($HTTP_POST_VARS['password']);

$confirmation = tep_db_prepare_input($HTTP_POST_VARS['confirmation']);

 

Add below:

//rmh referral start

$source = tep_db_prepare_input($HTTP_POST_VARS['source']);

if (isset($HTTP_POST_VARS['source_other'])) $source_other = tep_db_prepare_input($HTTP_POST_VARS['source_other']);

//rmh referral end

 

 

does it mean to add the lines after, or to completely remove the above two lines and replace with the latter?!?! what does rmh mean?

Archived

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

×
×
  • Create New...