codice:
<form name="sendQuery" action="receive.php" method="post">
<input type="text" name="query" />
<input type="submit" name="invia" value="Invia Query" />
<form>
Questo dovrebbe fare quello che ti serve...
poi dentro alla casella di testo "text" ci scrivi la query.. e nel file receive.php la prelevi da $POST['query']