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>

Archived

This topic is now archived and is closed to further replies.

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