Re: checkboxes

From: Date: Thu, 23 Apr 2009 12:54:45 +0000
Subject: Re: checkboxes
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-291859@lists.php.net to get a copy of this message
At 5:33 PM -0400 4/22/09, PJ wrote:
Well, I'm making a page to do limited searching of the database. To keep it simple I just want to search by title, author, ISBN or copyright date. So, I need to input the user's choice, limit it to one of the options and pass the supplied parameter to the query. I prefer to not use Javascript. No need to disable stuff as that was merely a misdirected thought. I think Ashley's suggestion should work. My problem has been to understand the workings of the form inputs. Now, I'm just anticipating some acrobatic feats to be able to pass the author parameters to the query as they are comprised of two fields (first_name and last_name). But, I think that that can be done, at worst, by doing a different query just for the author. TIA. Phil
Phil: The user has to enter something in to do a search right? So why not use what they enter as the type of search they what? Like so: http://php1.net/a/edit-db-demo/ Here a user can search for a Last name, first name, or email. Note, there's no checkboxes because the user indicates what they are searching for by where they place their search criteria. HTH's tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#291859) next »