Jump to content

IE7 madness


simulastral

Recommended Posts

Turns out the search works every time if you use the submit button to submit, but not if you hit the enter key.  Who would have thunk it?  Is there a solution to this problem so that the enter key works everytime?

 

A snippet of my previously posted code:

 

  if (isset($_POST['search']))

  {

  include('db_connect.php');

  include('sec_script.php');

  $product = escape_data($_POST['product']);

  $query = "SELECT id, productname, other, address FROM products WHERE MATCH (productname) AGAINST ('$product') ORDER BY productname";

  $result = @mysql_query ($query);

  while ($row = mysql_fetch_array($result, MYSQL_ASSOC)){

 

AND THE FORM:

 

<p style="margin-bottom:0px;">Product Search: </p><form action="search.php" method="post"><input name="product" type="text" /> <input type="submit" name="submit" value="search" /></form>

 

Link to comment
https://forums.phpfreaks.com/topic/55171-ie7-madness/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.