Jump to content

Submit Function in Dependant Drop Down Menus


ams53

Recommended Posts

I've created a form with 4 dependant drop down menus used to filter available products down to product model number in the last drop down where value=product_id and label=model_name.  However, I can't get the "product_id" associated with the last drop down to populate in the url parameter.

 

For example, i've tried using the javascript statement for the submit button as:

 

onClick="document.location.href=product.php?product_id=<? php echo [$rowRecordset4('product_id')]; ?>"

 

Each of the drop downs is populated by a separate table, but the onClick statement calls the same page everytime.  I can't get the "product_id" select from the last drop down to echo into the onClick statement.

 

Is there a simple way to fix this?  What have I missed?

 

I am new to this, so any help would be appreciated.

 

Thanks.

Link to comment
Share on other sites

Beuller... Beuller... Anyone... Anyone....

 

I never thought I would have to post a rely to my own question in order to get some attention.  I guess no one knows how to do this.  At least I don't.  Any help would be great.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.