Technology Discussion forum. The completely free for All technical posts: Share info and queries on gadgets, computers, laptops, hardware, games etc to be posted here
Moderator: admin
by krazysang » 19 Jun 2009, 13:03
When you have typed a search query on google or on any other site for that matter and got the results .. have you looked at the url of the results page . That url contains your search query.
For example : if we have searched for "movies " on google .. we get the following url of the result page
http://www.google.co.in/search?q=movies ... =firefox-a
Please note "q=movies" in the above url .
But when you type in username or any other authentication information on a website .. the same is not true ... u don't see this information as a part url of the page you have logged into . This is logical because we do not want our authentication information to be viewed by anyone , and we want it to be sent discreetly across the web .
So how does this happen? How does the web know what information to keep secret and what to expose ?
The answer is simple .We tell the web how to handle this information.
While writing the code for the information...
When we want to show in the url , we tell the web to GET the data on the following way:
<form action ='result.html' method='GET'>Search:<input type='text' size='50'></form>
When we want to show in the url , we tell the web to POST the data on the following way:
<form action ='result.html' method='POST'>Username:<input type='text' size='25'></form>
Everything in Life Happens for a Reason !!
-

krazysang
-
- Posts: 92
- Joined: 22 Nov 2008, 18:57
- Lucky Number: 0
- Interested In: Professional Network
by stars2710 » 19 Jun 2009, 20:44
Hey krazysang ..
nice write up .. never realised this difference .. in the urls ...
-
stars2710
-
- Posts: 42
- Joined: 21 Apr 2009, 16:43
by marcjone09 » 22 Jun 2009, 21:11
smokin cool.... thank the kraze

rock me.... i need a mircale
-

marcjone09
-
- Posts: 43
- Joined: 22 Jun 2009, 20:34
- Location: usa
- Favourite Quote: i believe in love
- Lucky Number: 36
- Interested In: Web Skills Development
- About_me: a single open source. 6ft 2in .... athletic..... luuuuuuuuuvzzzzzzzzz to read.....
- education: Graduate
- Occupation: web designer
- career interests: web me up scotty
by krazysang » 23 Jun 2009, 12:07
yeah , this was the simplest way of explaining this ... u can get a lot more details info online .. if u get sumthing more useful do post it here ...

Everything in Life Happens for a Reason !!
-

krazysang
-
- Posts: 92
- Joined: 22 Nov 2008, 18:57
- Lucky Number: 0
- Interested In: Professional Network
Return to Technology Discussion forum
Users browsing this forum: No registered users and 0 guests