阅读背景:

如何将HTML表单的值转换为“自定义”URL?

来源:互联网 

On my site, I can access a search function by going to "mysite.com/search/search_term", where "search_term" is the term the user entered. I'm trying to get a simple one-input form to format the URL that way. One way that I can do it is make a PHP script that would redirect to the proper place. So if you navigate to "search_redirect.php?term=search_term", it would just redirect you to "/search/search_term". I want to avoid doing this, as it seems kind of redundant. If I don't find a better answer, that's probably what I'll end up doing. Now, here's what I tried so far:On my site, I can access a search function by g




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: