I have the following code:
<form action="search.php" method="get" name="searchprod" id="prodsearch">
<table border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td><input name="q" type="text" id="searchbox" value="Search" onfocus="this.value=''; this.style.color='#333333';" /></td>
<td><input type="submit" value="Search" class="searchButton" /></td>
</tr>
</tbody></table>
</form>
When a user searches how can i make it so it looks like this “Dvd-player.html” instead of “search.php?q=dvd+player”
I have the .htaccess in place however not sure how to do it within the form.
You could use Javascript to change the form action to
searchbox-value.htmlin the onsubmit event of the form.