Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to insert data into database


Colin

Recommended Posts

Posted

hi there,

I have a table that has records stored in it. I have built a form using osC's tep pulldown box system. Here's my question. If I choose an option in that pulldown and then type text in a textarea field, how do I insert the pulldown value AND the text from the textarea field into a different table?

 

For example:

Pulldown values could be 1, 2, 3, 4, 5.

 

If I select 3 from the pulldown and then input into the textarea field, say.. Orange.. how would I insert those two values as fields in a new row into a table called Values..

 

make sense?

The Values table would have three fields per row.. the first would be an auto incrementing field, the second the pulldown field, the third the text value.

 

Thanks,

Colin

Archived

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

×
×
  • Create New...