SEO/PHP: How to Convert Form-Submit URL (Get-Method) without Javascript SEO-Friendly?
- by elmas
hello, i have this code
<form action="index.php" method="get" class="search-form"><input type="text" size="35" name="search" class="searchBox" value="" /><input type="submit" value="Start Searching!" /></form>
and actually i convert the url with javascript
<script type="text/javascript">
$(document).ready(function() {
$('.search-form').submit(function() {
var value = $('.search-form input:text').val();
value = value = value.replace(/\W/,''); // replace
window.location.href = value + "-keyword" + ".html";
return false;
});
});
</script>
is there a method to convert the url seo-friendly without javascript? maybe with php?