Vorrei che quando premo enter o clicco sul bottone search, mi invia il form, questo il codice html:

codice:
<form action="search.php" method="get">
<font face="Tahoma, Geneva, sans-serif" size="5">
    <center>
    	Ricerca nel sito

        <input type="text" size="50" name="search">
        <input type="submit" name="submit" value="search"/>
        </center>
        </font>
</form>
questo il codice php

Codice PHP:
<?php
<?php

//get data
$submit $_GET ['submit'];
$search $_GET ['search'];

if (!
$submit)
    echo 
"Non hai inserito la parola";
else
{
    
$search=trim($search);
    if (
strlen ($search) <=2)
        echo 
" Termine troppo corto";    
    else
    {
        echo 
"Hai cercato la parola [b]$search[/b]<hr size='1'>";
        
        
//connect to our database
        
mysql_connect("localhost","root","root");
        
mysql_select_db("Sql2446hi");
        
        
            
//explode our search term
            
$search_exploded explode(" ",$search);
            
            
$x=0
            
$construct '';

            foreach(
$search_exploded as $search_each)
            {

                
//construct query
                
$x++;
                if (
$x==1)
                    
$construct .= "keywords LIKE '%$search_each%'";
                else
                    
$construct .= "OR keywords LIKE '%$search_each%'";

            }

    
//echo out construct
    
    
$construct "SELECT * FROM searchengine WHERE $construct";
    
$run mysql_query($construct);
    
    
$foundnum mysql_num_rows($run);
    
    if (
$foundnum==0)
        echo 
"Nessun risultato trovato.";
    else
    {
        echo 
"$foundnum risultati trovati!

"
;
        
        while (
$runrows mysql_fetch_assoc ($run))
        {
            
//get data
            
$title $runrows ['title'];
            
$desc $runrows ['description'];
            
$url $runrows ['url'];
            
            echo 
"
            [b]
$title[/b]

            
$desc

            [url='
$url']$url[/url]


            "
;
        }
    
        
    }
    
    }
}
?>

Vi ringrazio nuovamente, ciao
Debora