'HTML' form
<form action="result.php" method="POST">
<input type="search" name="query" size="10" id="searchfield" title="searchfield" />
<input type="submit" name="Search" value="" alt="Search" id="searchbutton" title="Search" />
</form>
result php file
<?php
@session_start();
include 'connections.php';
if (isset($_POST['query']) && $_POST['query'] != "")
$query = $_POST['query'];
$min_length = 1;
if(strlen($query) >= $min_length)
{
$query = htmlspecialchars($query);
$query = mysql_real_escape_string($query);
............`
value that entered in search field is not going from 'HTML' form to 'PHP' file to perform required operations please anyone help me to solve this bug..