Jump to content

Can I simplify my methode code or do I have to start from scratch?


JTapp

Recommended Posts

I’m new at php and I’m wondering if what I have to start from scratch on my current search code or if I can just edit what I have...

Can somebody help me?

 

I currently have a ‘search.html’ page that has a methode form searching for ‘DropDownItem1’= userinput, ‘DropDownItem2’= userinput, and ‘DropDownItem3’=userinput.  It is forwarded to a results.php webpage.

 

I now need to remove the form and user input function and make a stand alone button that specifically searches for DropDownItem1 = myspecificvariable.  So the user doesn’t have an input option… they just click “go”.  Can I keep my search.html page?  I basically want a return of field "tblDpt.Number" to be all values of "4".

 

Here is my current code on my search.html page:

 

<form method="post" action=" results.php"; target="_blank">

<div align="center">

  <p class="style1">Department Locator </p>

  <p> </p>

  <table border="0" cellpadding="0" cellspacing="0">

<tr>

<td bordercolor="#000000">

<p align="center">

<select name="metode" size="1">

<option value="tblDpt.Name">Name</option>

<option value="tblDpt.Number">Number</option>

<option value="tblDpt.City">City </option>

<option value="tblDpt. County">County</option>

</select> <input type="text" name="search" size="25"></p>

<p align="center">

 

  <strong>Search Now:</strong>

    <input type="submit" value="Go!!" name="Go">

</p></td>

</tr>

</table>

</div>

</form>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.