Colin Posted June 24, 2004 Posted June 24, 2004 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
vasttech Posted June 24, 2004 Posted June 24, 2004 Look at a page like create_account.php and see how it puts the information into the database. Copy and alter the code appropriately to apply to your situation. Basically you will see that it sets up an array for the variables in the form, then uses the tep_db_perform function to insert the array into the table. osCommerce Knowledge Base osCommerce Documentation Contributions
Recommended Posts
Archived
This topic is now archived and is closed to further replies.