SEO/PHP: How to Convert Form-Submit URL (Get-Method) without Javascript SEO-Friendly?

Posted by elmas on Stack Overflow See other posts from Stack Overflow or by elmas
Published on 2010-03-03T00:27:16Z Indexed on 2010/05/02 14:57 UTC
Read the original article Hit count: 197

Filed under:
|
|
|

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?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about seo