Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Dynamic use of more then one option box

Guest
Sep 16, 2009 Sep 16, 2009

Dear all,

I want to use several option boxes, where the options are selected form a MySQL database.

I've met several problems,

1. How do I get the selected option in a PHP and JS variable ($xyz=$_GET['field']) and (var xyz=form.field.Options.Selected)  doesn't seem to function.

2. The options of the second option box are selected with a SELECT Query, containing a where clause, using the selected option from the first option box.

Does somebody haves a clu?

Thank you in advance,

Cees from Holland

TOPICS
Server side applications
690
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Sep 18, 2009 Sep 18, 2009

Yes.

Translate
LEGEND ,
Sep 16, 2009 Sep 16, 2009

If you are using a Dreamweaver Dynamic List/Menu to display the options from a recordset, click the lightning bolt icon alongside the "Set value equal to" field in the Dynamic List/Menu dialog box, and select the recordset field you want to be used. See the following illustration:

16100ill1640scrap.jpg

To solve your second issue, you would need to use Ajax. Dreamweaver doesn't do it out of the box. Do a Google search for jQuery dependent drop down.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 17, 2009 Sep 17, 2009

Thanks David,

Isn't possible to use the onChange handler to create AJAX functionality?

Regards,

Cees

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 18, 2009 Sep 18, 2009
LATEST

Yes.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines