Steps for url Encoding:-
For ex:- username- sai 4u -tusr [textbox]
password- sri!! -tpwd [textbox]
Login -btn1 [button]
1.combines all the names and values as pairs using "="
tusr=sai 4u
tpwd=sri!!
btn1=Login
2.combines all the names and value pairs as a single expression using "&"
for ex:-
tusr=sai 4u&tpwd=sri!!&btn1=Login
3.Replaces all the blank spaces present within the expression using "+"
for ex:-
tusr=sai+4u&tpwd=sri!!&btn1=Login
4.Replaces all the non-alpha numerical values present within the expression with its relevant hexa-decimal value prefixed using "%"
for ex:-
tusr=sai%204u&tpwd=sri%21%21&btn1=Login
Note:- the above expression is the data which should be submitted from the client system to the server,if Get method is used then data will be passed as querystring[http header] and if post is used then in the form of byte stream[http message body]