Jump to content


Photo

Drop Down List in a Repeat Region


  • Please log in to reply
1 reply to this topic

#1 Terry103

Terry103
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 15 September 2006 - 07:45 PM

I have a table that shows data from a MySQL database. In the last two columns of the table, I have a drop-down list and then an 'Add to Cart' Button. The drop-down list is populated from another MySQL table. Because the drop down list is created for each line, they all have the same name. When I click on the 'Add to Cart' Button, It sends info to the next page via the echo command.
The problem is that I can't get the value in the drop down list to go to the next page. How do I access the value in the drop-down list to send it to the next page?

#2 HuggieBear

HuggieBear
  • Members
  • PipPipPip
  • Advanced Member
  • 1,899 posts
  • LocationEngland, UK

Posted 15 September 2006 - 07:49 PM

Give it a dynamic name based on the row it's in...

Are you able to post the code, and if you have a working example somewhere that would be excellent too.

Regards
Huggie
Advice to MySQL users: Get phpMyAdmin and test your queries work there first, take half the hassle out of diagnosis, also check the reserved words list.

Links: PHP Docs :: RegEx's :: MySQL :: DevGuru :: w3schools




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users