ams53
-
Posts
9 -
Joined
-
Last visited
Never
Posts posted by ams53
-
-
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.
-
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.
-
I've created filtered lists with DW MX 2004 and an extension by Interakt called MX Kollection (no longer supported, since Adobe bought Macromedia). If you look around the net, you maybe able to find a free 30 day trial download, which is fully functional. MX Kollection has tutorials included that show you how to use the extension step-by-step. Part of the extension is NexTenso, which creates both filtered lists and forms.
If you are not good or new to hand coding, this is a simple way to build this type of function. I've used these extensions to create functions quickly and to learn how to hand code. My goal is still to learn to code by hand and not rely on these type of extensions, but in a pinch, they work alright.
-
I used DW MX 2004 and the MX Widget Ext. to build a dependant drop down function. The drop downs work great in filtering the databases down to the specific product. However, I can't figure out how to link the last drop down to a display/ result page (product specific page). I've tried using url param and java onClick, but the same page loads every time.
This is the type of code I've used.
onClick="document.location.href='product.php?product_id=<? php echo [$rowRecordset5('product_id')]; ?>'"
Three questions:
Where am I going wrong with linking the selection in the last drop down with the results page?
Is there a better way to build dependant drop down menus when using a lot of files? If so, any good books or tutorials to learn from?
Thanks for helping this newbie.
-
It seems simple enough. Thanks for the help.
-
Have a db table that tracks favorites along with the user id. When they click "Add to Favorites" it'll create an insert statement adding that item the favorites table with the user's id.
In this new table, is a new record inserted or a new field created in the table? If only a record, then do I need a specific number of fields or can I allow an unlimited number of "favorites"?
-
Yeah, I'm using a mysql database for the site.
-
I'm pretty new to php/mysql. Is it possible to write a script where the user stores internal links to other parts of the website under a "my favorites" section. I need to allow the user to click on a link (i.e. "add to my favorites") next to a product and have an internal link added to that specific users profile under a "my favorites" tab. I've thought about cookies but the user should be able to access these preferences from any computer.
Does anyone have any suggestions? Any scripts out there for this?
Please teach this newbie a thing or two. Thanks.
Dynamic Drop Down Help
in PHP Coding Help
Posted
I've got my dynamic drop down menu working. However, I need help get the results page linked properly. When the final drop down menu is selected, the form sends you to the correct page (i.e. product.php?product_id=), but the url parameter is always = 4. Basically the same page pops up no matter what is selected in the final drop down.
Here is the code:
Any Suggestions??