From: "Sascha Meyer" on
Good Morning Nagendra,

Nagendra wrote:
> Sorry, I haven't mentioned in my earlier mail that the variables $filter
and
> $filterfield are global variables which I already defined.

I couldn't see this in your earlier mail but does the error occur inside a
PHP function?
I would assume so and this could be due to not seeing the previously defined
variables
because they are not declared as being in the global scope. Do you have code
like this
in your routine handling the form output?

[CODE]
function form_handling ()
{
global $filter, $filterfield;
// the rest of the HTML form output
<form action="index.php" method="post">
<table class="bd" border="0" cellspacing="1" cellpadding="4"> <tr>
<td><b></b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;</td>
<td><input type="text" name="filter" value="<?php echo $filter ?>"></td>
<td><input type="submit" name="action" value="Search"></td>
...
}
[/CODE]

Regards and keep us posted,

Sascha