<form method="post">
<label>
<input type="text" value="" size="18" name="searchtxt" class="box"/>
<input type="submit" value="Search" class="button" name=""/>
</label>
</form>
I pressed submit,but searchtxt is not submitted,why?
Make sure you’re referencing it through the $_POST array:
It’s a common mistake to instead try accessing the value as a straight variable:
$searchtxt;And on a side note, your HTML needs to be reorganized a bit: