XtGem Forum catalog

Random Link

Download Free GB, GBC, GBA And Many More ROMs Only On SkyWap.XTgem.Com!

What Are HTTP GET And POST Arguments?


SkyWap.XTgem.ComHTTP GET And POST Arguments Are Those Kinds Of Things That Make Your Life Easier.... Hmmmm.... FINALLY!!! ;-) O.K. Now Really.... They Are Very Useful Bits Of The So Much Used PHP Programming Language (They Are Actually PHP Variables). They Pass Data That The User Had Entered To Any Other Page. Of Course, There Is A Difference Between GET And POST Method.
HTTP GET Arguments Collect Their Data From A URL Query, Like This: http://YOURXTGEMSITE/SOMEPAGE?query=data
Query Starts With The ? And The Second Word Is The Variable Name (Case-Sensitive!). The Third Sign Is = Which Defines The Value Of The Variable. The Fourth Value Is The Actual Value Of The Variable. Also You Should You That You Have To Encode The Special Characters (Such As: A Space = %20). That's It For HTTP GET Arguments....
SkyWap.XTgem.Com The HTTP POST Arguments, Are Meant To Pass The Data Only To One Page (Not Multiple Pages, As With HTTP GET). Also, The Great Thing About Them Is That They Don't Form A Query (As The HTTP GET), So Your URLs Will Be Cleaner. That's It For HTTP POST Arguments...
SkyWap.XTgem.Com You Can Command The HTTP Arguments, To Pass The Value In 2 Ways:
The First Way Is With The <a> Tag, Which Is Great For Multi-Page Data Passing With HTTP GET Arguments (You Can Only Use Query For The GET Method!)
SkyWap.XTgem.ComThe Second Way Is With Forms (<form method="get"> For The GET Method, And <form method="post"> For The POST Method). Both GET And POST Can Be Formed With Forms.
SkyWap.XTgem.ComThey Are Declared Like This: {_$VARIABLE NAME|THE DEFAULT VALUE IF THE DATA IS NOT PASSED}

I Hope That This Tutorial Helped You ;-)

Read: 1490 Times...


Leave Your Comments Here.....
HTML Comment Box Is Loading Comments...