PHP Classes

File: exampleSearchForm.php

Recommend this page to a friend!
  Classes of Cinu Chacko   Class Grep Search   exampleSearchForm.php   Download  
File: exampleSearchForm.php
Role: Example script
Content type: text/plain
Description: Main form which starts the demo.
Class: Class Grep Search
Search files in directories like grep
Author: By
Last change: Some text were modified as not able to create directory
Date: 15 years ago
Size: 2,233 bytes


Class file image Download

<meta http-equiv="content-type" content="text/html; charset=utf-8" />


<body bgcolor="ffffff">
 <form method="post" action="exampleSearch.php" name="keysearch">

 <div class="section-header"><h3>Enter word(s) or phrase(s)</h3></div>

 <div class="section">
  <span class="txt-sm">Path to the directory to be searched</span><br />
 <input type="text" name="path" value="./" size="35" /><br /
 <span class="txt-sm">Example "Alice's Adventures"</span><br />
 <input type="text" name="search" value="" size="35" /><br />
 <select name="searchtype" >
<option value="all" selected="selected" >Match ALL words</option>
<option value="any">Match ANY word</option><br />

<option value="phrase">Match EXACT phrase</option>

<option value="allInFile">Match ALL words in FILE</option>
 </select><br />
 <input id="casesensitive" type="checkbox" name="casesensitive" value="yes" />CaseSensitive<br />
 <input id="searchcountonly" type="checkbox" name="searchcountonly" value="yes" />Display Search Count Only<br />
 <input type="radio" name="limit" value="none" id="limit-none" checked="checked" />
 <label for="limit-none" id="limit-none-label">
 Search entire Book</label><br><br>
 <input type="radio" name="limit" value="span" id="limit-span"

<label for="limit-span" id="limit-span-label">
Search from Directory </label>
 <select name="spanbegin" id="limit-span-begin" >

<option value="1" selected="selected" >Chapter 1 to 3</option>

<option value="2">Chapter 4 to 6</option>
<option value="3">Chapter 7 to 9</option>
<option value="4">Chapter 10 to 12</option>
     to Directory
 <select name="spanend" id="limit-span-end" >
<option value="1">Chapter 1 to 3</option>
<option value="2">Chapter 4 to 6</option>
<option value="3">Chapter 7 to 9</option>
<option value="4" selected="selected" >Chapter 10 to 12</option>


 <input type="submit" name ="searchKeywordForm" value="Search for keyword or phrase" />
Developed by: <a href=""></a><HR>