can anyone help me how to create a search command....I am just new to php and I cant find any sites or tutorials to help me....
here is the story..
I want make a search box that will post all the scheduled trips with the corresponding destination, origin, date of arrival and date of departure......but I do not know how to do it....here is my code....
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Partas Bus</title>
<style type="text/css">
body {
background-color: #CEF7F5;
}
</style>
<link href="css/homelayout.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="logo"></div>
<div id="navigation"><a href="home.php">Home</a> | <a href="reservation.php">Reservation</a> | <a href="contactus.php">Contact Us</a></div>
<div id="headerImg"></div>
<div id="bodyArea">
<div id="left"><h2>Trip </h2>
<br/>
<p> <select>
<option>Origin</option>
<option>Pasay City</option>
<option>Cubao, Quezon City</option>
<option>Sampaloc, Manila</option>
<option>Angeles City, Pampanga(DMIA)</option>
<option>Baguio City, Benguet</option>
<option>Bangued, Abra</option> <option>Candon City, Ilocos Sur</option>
<option>Carmen, Pangasinan</option>
<option>San Fernando City, La Union</option>
<option>Sison, Pangasinan</option>
<option>Tarlac City, Tarlac</option>
<option>Urdaneta City, Pangasinan</option>
<option>Vigan City, Ilocos Sur</option>
<option>Laoag City, Ilocos Norte</option>
</select></p>
<br/>
<p> <select>
<option>Destination</option>
<option>Pasay City</option>
<option>Cubao, Quezon City</option>
<option>Sampaloc, Manila</option>
<option>Angeles City, Pampanga(DMIA)</option>
<option>Baguio City, Benguet</option>
<option>Bangued, Abra</option> <option>Candon City, Ilocos Sur</option>
<option>Carmen, Pangasinan</option>
<option>San Fernando City, La Union</option>
<option>Sison, Pangasinan</option>
<option>Tarlac City, Tarlac</option>
<option>Urdaneta City, Pangasinan</option>
<option>Vigan City, Ilocos Sur</option>
<option>Laoag City, Ilocos Norte</option>
</select></p>
<br />
<h15>Departure Date</h15>
<br />
<select>
<option>Month</option>
<option>January</option>
<option>February</option>
<option>March</option>
<option>April</option>
<option>May</option>
<option>June</option>
<option>July</option>
<option>August</option>
<option>September</option>
<option>October</option>
<option>November</option>
<option>December</option>
</select>
<select>
<option>Day</option>
<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>
<option>12</option>
<option>13</option>
<option>14</option>
<option>15</option>
<option>16</option>
<option>17</option>
<option>18</option>
<option>19</option>
<option>20</option>
<option>21</option>
<option>22</option>
<option>23</option>
<option>24</option>
<option>25</option>
<option>26</option>
<option>27</option>
<option>28</option>
<option>29</option>
<option>30</option>
<option>31</option>
</select>
<select>
<option>Year</option>
<option>2012</option>
<option>2013</option>
<option>2014</option>
<option>2015</option>
<option>2016</option>
</select></p>
<br /><br />
<h15>Return Date</h15>
<br />
<select>
<option>Month</option>
<option>January</option>
<option>February</option>
<option>March</option>
<option>April</option>
<option>May</option>
<option>June</option>
<option>July</option>
<option>August</option>
<option>September</option>
<option>October</option>
<option>November</option>
<option>December</option>
</select>
<select>
<option>Day</option>
<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>
<option>12</option>
<option>13</option>
<option>14</option>
<option>15</option>
<option>16</option>
<option>17</option>
<option>18</option>
<option>19</option>
<option>20</option>
<option>21</option>
<option>22</option>
<option>23</option>
<option>24</option>
<option>25</option>
<option>26</option>
<option>27</option>
<option>28</option>
<option>29</option>
<option>30</option>
<option>31</option>
</select>
<select>
<option>Year</option>
<option>2012</option>
<option>2013</option>
<option>2014</option>
<option>2015</option>
<option>2016</option>
</select>
/* here is the code for the search button.....where should i place the command and how?*/
<br /><br />
<form method="post" action="search_result.php?go" id="searchform" >
<input type="submit" class="button" value="search" name='submit'/>
</form>
</div>
<div id="right">
<p> </p>
<p><img src="images/wetakepride.jpg" width="754" height="253" /></p>
<p> </p>
<b>Partas Bus Company</b>
<p> </p>
<p> A company owned by Mr. Chavit Singson, the company stands to their motto: <i> We take pride in our courteous and safe drivers.</i> Partas provide quality buses, trained drivers and safe trips for the satisfaction of their customers.</p>
</div>
</div>
</div>
</body>
</html>
thank you very much if you could help me!!! i have been researching for two days straight without sleep..