In my HTML page I have a drop-down list with several options, which are some company names. I would like to get related records when I select certain company. I have no problem with this. But I want to add a “All” option at the top of the list and when I select “All” all the records will show up. Since I post the selected company name to back-end and do a normal sql query to find the records of which the company name is equal to the one I post, so I definitely cannot just post “All” to back-end. Is there a neat way to achieve this?
Share
Simplest (and neatest) is probably to put an if(){ statement server side.
So,
and then run the
$sqlquery.