drd99007
2012-03-23 12:21
浏览 117
已采纳

如何访问从mysql数据库填充的php下拉列表中显示的值

Firstly, let me say that I've been searching the Internet, rewriting scripts and I still can't seem to find a solution to my problem or even one that could possibly help. I've even searched this site for similar questions and the focus seems to be on actually displaying the database values but what I want is to access those values. Or rather let me put it like this, I have a drop down that is generated through php and it contains data retrieved from mysql... all that works fine no errors.

My current problem is that when a user select an option from my dropdown, I want to use that value to do more operations based on the user's selection. Please help, I've been at it for a week with no avail. Thanks in advance. If you need samples of my code please tell me.

图片转代码服务由CSDN问答提供 功能建议

首先,让我说我一直在搜索互联网,重写脚本,我似乎仍然无法 找到我的问题的解决方案,甚至可能有帮助的解决方案。 我甚至在这个网站上搜索了类似的问题,重点似乎是实际显示数据库值,但我想要的是访问这些值。 或者更确切地说,让我这样说,我有一个通过php生成的下拉列表,它包含从mysql中检索到的数据......一切正常,没有错误。

我当前的问题是当用户从我的下拉列表中选择一个选项时,我想根据用户的选择使用该值来执行更多操作。 请帮助,我已经在这一周没有用了。 提前致谢。 如果您需要我的代码示例,请告诉我。

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

3条回答 默认 最新

相关推荐 更多相似问题