Posted by chsadaki on 11/14/91 11:51
drec wrote:
> I am creating a search box that the user types a value in, and then
> this gets passed to another page called search.php
>
> I would like to be able to pass these values through the URL, but I
> cant seem to figure out how. Right Now I have a simple html form that
> passes the value through posting, which I can then pull with a
> $_POST['name']. But I need to have this value be passed through URL.
Hello Drec
Your problem can be solved by replacing the $_POST with $_GET['name']
I guess that the value of method in the form tag is :
<form .... method="POST"....>
so u have to replace it with method="get" in this case u can see what u
r passing in the url.
Chamirame Sadaki
Navigation:
[Reply to this message]
|