RE: [PHP] need help to put input text value into url
| From: | Ing. Edwin Cruz | Date: | Tue, 25 Apr 2006 23:25:27 +0000 |
| Subject: | RE: [PHP] need help to put input text value into url | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-234757@lists.php.net to get a copy of this message | ||
Only chage method="post" for method="get"
Regards!
-----Mensaje original-----
De: Patrick Aljord [mailto:patcito@gmail.com]
Enviado el: Martes, 25 de Abril de 2006 06:19 p.m.
Para: php-general@lists.php.net
Asunto: [PHP] need help to put input text value into url
I have a form like this:
<form action="search.php" method="post" target="_self">
<input type="text" name="search_text" cols="20"
rows="10"></input> <input
type="submit" name="submit_search" value="search" /> </form>
while this is working fine, I would like the url of search.php to be
something like search.php?q="value+of+search_text"
eg, if I enter "php rules" in my text box, the url should be
http://myfakepage.com/search.php?q="php+rules"
any idea how to do that?
thanx in advance
Pat
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php