gerodim,
Could you show me exactly where and how to include these lines:
if ($_GET['query'] == 1) {func1($person);}
if ($_GET['query'] == 2) {func2($person);}
Thanks.
Main Topics
Browse All Topics I have a simple script (thanks to assistance from Expert TeRReF) that allows users to select their name from a list and search a MySQL database using a special query built into the script.
I want to add radio button or check box to allow users to choose between that query and different (opposite) query. The script is posted at: http://216.92.61.99/search
Please have a look and tell me how the form and script can be modified to add radio buttons or checkboxes under the listbox on the form and make the script direct its processing to the first query for the first option ("Still to Do"); but the other option ("Already Done") would direct processing to the other query (which is currently commented out in the sample script, since the script is currently set to process the first query automatically, with no options). Thanks.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: gerodimPosted on 2006-09-28 at 01:17:48ID: 17617028
at first u have 2 add the radiobutton under the listbox
<LABEL><INPUT TYPE="radio" NAME="query" VALUE="1"> query1</LABEL><br>
<LABEL><INPUT TYPE="radio" NAME="query" VALUE="2"> query2</LABEL><br>
then make the query functions with different names (eg func1,func2)
and add this phpcode where the processing takes place:
if ($_GET['query'] == 1) {func1($person);}
if ($_GET['query'] == 2) {func2($person);}