[SOLVED] Form Search

This is a discussion on "[SOLVED] Form Search" within the PHP Forum section. This forum, and the thread "[SOLVED] Form Search are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 15th, 2007, 14:11
Reputable Member
Join Date: Oct 2007
Location: Liverpool UK
Age: 29
Posts: 216
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] Form Search

Could someone please show me how to attach a Php search engine script onto the form below, i have many search scripts examples, but i keep failing to tweak them onto my own search form.

I have only been using Php for about a month, and really i could do with someone fixing a working example of Php search code to the form below.

If anyone here decides to help me out on this, look below to find the database that i have created that the search script will get results from, and also the form that the user will use to enter there search.

Cheers,

My form:

HTML: Select all
<form name="form1" method="post" action="">
 <table width="254" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="103" height="27" class="style7"><div align="center" class="style2">Gender:</div></td>
                          <td width="151" class="style7"><label>
                            <select name="gender" class="style7" id="gender">
                              <option>Male</option>
                              <option>Female</option>
                            </select>
                          </label></td>
                        </tr>
                        <tr>
                          <td height="27" class="style7"><div align="center" class="style2">Age:</div></td>
                          <td class="style7"><label>
                            <select name="age" id="age">
                              <option>18</option>
                              <option>19</option>
                              
                            </select>
                          </label></td>
                        </tr>
                        <tr>
                          <td height="26" class="style7"><div align="center" class="style2">Height:</div></td>
                          <td class="style7"><label>
                            <select name="height" id="height">
                              <option>3</option>
                              <option>4</option>
                              <option>5</option>
                              <option>6</option>
                              <option>7</option>
                              <option>8</option>
                            </select>
                            <span class="style2">                            To</span>
                            <select name="height2" id="height2">
                              <option>1</option>
                              <option>2</option>
                              <option>3</option>
                              <option>4</option>
                              <option>5</option>
                              <option>6</option>
                              <option>7</option>
                              <option>8</option>
                              <option>9</option>
                              <option>10</option>
                              <option>11</option>
                            </select>
                          </label></td>
                        </tr>
                        <tr>
                          <td height="29" class="style7"><div align="center" class="style2">Hair Colour:</div></td>
                          <td class="style7"><label>
                            <select name="hair_colour" id="hair_colour">
                              <option>Black</option>
                              <option>Brown</option>
                              <option>Blonde</option>
                              <option>Red</option>
                              <option>Auburn</option>
                              <option>Other</option>
                            </select>
                          </label></td>
                        </tr>
                        <tr>
                          <td height="27" class="style7"><div align="center" class="style2">Area:</div></td>
                          <td class="style7"><label>
                            <select name="area" id="area">
                            <option>Any</option>
                          <option>England-Bath Avon</option>
                          <option>England-Bedforshire</option>
                          
                            </select>
                          </label></td>
                        </tr>
                        <tr>
                          <td height="32"><div align="center" class="style3">Work Interested:</div></td>
                          <td><label>
                            <select name="skills" id="skills">
                              <option>Look-A-Likes</option>
                              <option>Models &amp; Glamour</option>
                              <option>Actors &amp; TV Extras</option>
                              <option>Singers &amp; Vocalists</option>
                              <option>Theatre &amp; Musicals</option>
                              <option>Producers&amp;Aegents</option>
                            </select>
                            <input type="submit" name="search" value="Search" />
                            <br>
                          </label></td>
                        </tr>
  </table>
                      <p align="center">
                        <label></label>
                      </p>
                      <p align="left">&nbsp; </p>
</form>


My sql database:

CREATE DATABASE IF NOT EXISTS dbsignup;
USE dbsignup;
CREATE TABLE `customer` (`customer_id` INT( 3 ) NOT NULL
AUTO_INCREMENT,
`first_name` VARCHAR(30) NOT NULL ,
`last_name` VARCHAR(30) NOT NULL ,
`address` VARCHAR(70) NOT NULL ,
`city` VARCHAR(40) NOT NULL ,
`area` VARCHAR(50) NOT NULL ,
`email` VARCHAR(70) NOT NULL ,
`phone` VARCHAR(20) NOT NULL ,
`user_name` VARCHAR(30) NOT NULL ,
`password` VARCHAR(30) NOT NULL ,
`work_location` VARCHAR(60) NOT NULL ,
`agency_name` VARCHAR(70) NOT NULL ,
`agency_number` VARCHAR(30) NOT NULL ,
`skills` VARCHAR(500) NOT NULL ,
`about_me` VARCHAR(500) NOT NULL ,
`myspace_address` VARCHAR(50) NOT NULL ,
`hotmail_yahoo_address` VARCHAR(50) NOT NULL ,
`gender` VARCHAR(10) NOT NULL ,
`age` VARCHAR(3) NOT NULL ,
`height_one` VARCHAR(20) NOT NULL ,
`height_two` VARCHAR(20) NOT NULL ,
`build` VARCHAR(20) NOT NULL ,
`eye_colour` VARCHAR(20) NOT NULL ,
`hair_colour` VARCHAR(30) NOT NULL ,
`desired_work` VARCHAR(100) NOT NULL ,
`image_one` VARCHAR(10) NOT NULL ,
`image_two` VARCHAR(10) NOT NULL ,
`image_three` VARCHAR(10) NOT NULL ,
`image_four` VARCHAR(10) NOT NULL , UNIQUE ( `customer_id` ) );

  #2 (permalink)  
Old Nov 15th, 2007, 15:05
SuperMember

SuperMember
Join Date: Jun 2007
Location: uk
Posts: 459
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Form Search

I have a search on my site I can try and adapt. might take a while though.
  #3 (permalink)  
Old Nov 15th, 2007, 15:09
Reputable Member
Join Date: Oct 2007
Location: Liverpool UK
Age: 29
Posts: 216
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Form Search

Thanks m8t!

All be looking forward to the result
  #4 (permalink)  
Old Nov 15th, 2007, 16:40
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Form Search

Umm didn't I help you with this yesterday?
[SOLVED] Search Script
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
  #5 (permalink)  
Old Nov 15th, 2007, 18:32
Reputable Member
Join Date: Oct 2007
Location: Liverpool UK
Age: 29
Posts: 216
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Form Search

Yer u sent me a script but i had trouble adapting it to me form, just not good enough with Php at the moment.
  #6 (permalink)  
Old Nov 15th, 2007, 19:54
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Form Search

Read through the link I sent you.
Should explain everything.
Good luck mate.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
  #7 (permalink)  
Old Nov 20th, 2007, 06:13
c010depunkk's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to c010depunkk
Re: [SOLVED] Form Search

THREAD CLOSED (cleaning up)
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Form output using mysql, search people name in specific category basketmen PHP Forum 1 Mar 24th, 2008 06:31
[SOLVED] PHP contact form redirect to same form Posie PHP Forum 14 Jan 29th, 2008 20:28
Help With Search Box/form William M Web Page Design 7 Oct 4th, 2007 16:02
Anyone have a working search form script? daveg33 PHP Forum 12 Sep 28th, 2007 23:54
Advanced search form victory Classic ASP 1 Mar 4th, 2005 20:57


All times are GMT. The time now is 02:08.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43