Forums

PHP

This topic is locked

setup database search in DW from a fireworks menu

Posted 28 Nov 2006 22:57:07
1
has voted
28 Nov 2006 22:57:07 S S posted:
Hi everyone,
I recently took on the challenge of learning the studio 8 pakcage. so far so good but I have some problems doing things outside the standard dreamweaver built in function.
I would like to link a menu that I built in firework to a variable (once I click on a one of the options on the menu I would like that variable to be set to a value). that variable , I would like to use it in a recordset to do a search of a database.
I would greatly appreciate any help what so ever, I have been banging my head against a wall...( it doesnt help much!)
Thank you all in advance
S

Replies

Replied 01 Dec 2006 14:18:24
01 Dec 2006 14:18:24 Iain Stewart replied:
have you tried setting the varible in the link

so the button link would be something like

page.php?variable=x

then on page.php have the recordset query the db using the value in the url parameter ?



Iain

head hurts, 'mental note to self, stop banging head !'
Replied 04 Dec 2006 23:12:29
04 Dec 2006 23:12:29 S S replied:
Dear Iain,
the problem with that is that I want to set up a page with some hidden fields. when i click on the preset search ( from the fireworks generated drop down menu) the hidden fields become visible and display the appropriate search results.
Ideally, I would like one search routine with the search variable being set everytime we click on a different option from the drop down menu. I think it is probably the simplest way to do it. the problem is I dont know how to go about doing it.
thanks again for all your help <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Sal
Replied 06 Dec 2006 01:06:57
06 Dec 2006 01:06:57 S S replied:
By the way, I have tried what you recomended but it doesnt work. I get just the page to load up and no search result to show. Alternatively I was sucessfull at making assigning the value of the variable through a simple submit button and a couple lines of coding. I wish it was as simple with fireworks menus!
cheers

Reply to this topic