AW: Need help with HTML form errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux