close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


MySQLi jump select menu to filter a recordset?

Thread began 2/17/2017 9:33 am by Nathon Jones Web Design | Last modified 2/17/2017 11:51 am by Ray Borduin | 558 views | 2 replies |

Nathon Jones Web Design

MySQLi jump select menu to filter a recordset?

I have a standard menu that submits to the same page to filter a recordset but that also includes two hidden fields to blank filter two other fields...

<form action="car-competition.php" method="post" class="form-inline">
<label for="catID" class="sr-only">Category</label>
<select class="form-control" id="catID" name="catID">
<option value="0">All Categories</option>
while(!$rsCATS->atEnd()) {
<option value="<?php echo($rsCATS->getColumnVal("dreamcarCATID")); ?>"><?php echo($rsCATS->getColumnVal("dreamcarCATEGORY")); ?></option>
$rsCATS->moveFirst(); //return RS to first record
<button type="submit" class="btn btn-info">View</button>
<input type="hidden" name="mID" id="mID" value="0">
<input type="hidden" name="tID" id="tID" value="0">

The client wants this changed to a jump menu with no button so that, upon selection, it immediately runs the query as opposed to requiring the client to physically click the button.

How do I achieve this? Any tutorials I've seen simply add a URL into the option value attribute however that will change the query to GET as opposed to POST plus it doesn't carry the other two hidden fields.

Would appreciate your advice on that.
Thank you.

Sign in to reply to this post

Ray BorduinWebAssist

<select onchange="this.form.submit()"

Sign in to reply to this post
Did this help? Tips are appreciated...

Nathon Jones Web Design

Jeez. :S

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...