How to use $_POST and $_GET in url bar?
Moderator: General Moderators
- kaisellgren
- DevNet Resident
- Posts: 1675
- Joined: Sat Jan 07, 2006 5:52 am
- Location: Lahti, Finland.
How to use $_POST and $_GET in url bar?
I need to use url bar to send information and I need to send it as $_POST. How to do it? Currently I have: http://www.domain.com/email.php?name=my ... s=password How to make it as $_POST ?
in the HTML-form instead of
use
Code: Select all
<form method="GET" action="...">Code: Select all
<form method="POST" action="...">
Last edited by patrikG on Sat Jan 07, 2006 6:16 am, edited 1 time in total.
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
- kaisellgren
- DevNet Resident
- Posts: 1675
- Joined: Sat Jan 07, 2006 5:52 am
- Location: Lahti, Finland.
- kaisellgren
- DevNet Resident
- Posts: 1675
- Joined: Sat Jan 07, 2006 5:52 am
- Location: Lahti, Finland.
- kaisellgren
- DevNet Resident
- Posts: 1675
- Joined: Sat Jan 07, 2006 5:52 am
- Location: Lahti, Finland.
look up "phpsecureurl" at http://www.phpclasses.org/
it should be under security
theres lots of different classes there that does the same thing btw
basically it gets your
?var1=thet&var2=rehr&var3=grerg
and turns it into something like
?var=rkjglregjelrgjelgjlrjlwekgwjrgwrjgwlkgjl
which it would "decode" in your php script back to
?var1=thet&var2=rehr&var3=grerg
it should be under security
theres lots of different classes there that does the same thing btw
basically it gets your
?var1=thet&var2=rehr&var3=grerg
and turns it into something like
?var=rkjglregjelrgjelgjlrjlwekgwjrgwrjgwlkgjl
which it would "decode" in your php script back to
?var1=thet&var2=rehr&var3=grerg
- kaisellgren
- DevNet Resident
- Posts: 1675
- Joined: Sat Jan 07, 2006 5:52 am
- Location: Lahti, Finland.
The "form info" in the URL bar is the GET-request. For more info, see http://uk2.php.net/manual/en/language.v ... ternal.phpkaisellgren wrote:Ah, I have always wondered what's different between POST and GET. Does GET work if I "send" the form info with typing in the url bar?
- kaisellgren
- DevNet Resident
- Posts: 1675
- Joined: Sat Jan 07, 2006 5:52 am
- Location: Lahti, Finland.