close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

MySQLi jump select menu to filter a recordset?

Thread began 2/17/2017 12:33 pm by Nathon Jones Web Design | Last modified 2/17/2017 2:51 pm by Ray Borduin | 80 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>
<?php
while(!$rsCATS->atEnd()) {
?>
<option value="<?php echo($rsCATS->getColumnVal("dreamcarCATID")); ?>"><?php echo($rsCATS->getColumnVal("dreamcarCATEGORY")); ?></option>
<?php
$rsCATS->moveNext();
}
$rsCATS->moveFirst(); //return RS to first record
?>
</select>
<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">
</form>



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.
NJ

Sign in to reply to this post

Ray BorduinWebAssist

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

Sign in to reply to this post

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

Content

rating

Layout

rating

Ease of use

rating

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...