120Part IPHP: The BasicsHTML forms are mostly useful (Web design seattle)
Friday, August 24th, 2007120Part IPHP: The BasicsHTML forms are mostly useful for passing a few values from a given page to one single otherpage of a Web site. There are more persistent ways to maintain state over many pageviews, such as cookies and sessions, which we cover in Chapter 24. This chapter will focus on themost basic techniques of information-passing between Web pages, which utilize the GETandPOSTmethods in HTTP to create dynamically generated pages and to handle form data. This is where old-school ASP developers invariably say, PHP sucks! They think ASP sessionvariables are magic. Not to burst anyone s bubble, but Microsoft is just using cookies to storesession variables thereby opening the door to all kinds of potential problems. GET ArgumentsThe GETmethod passes arguments from one page to the next as part of the Uniform ResourceIndicator(you may be more familiar with the term Uniform Resource Locatoror URL) querystring. When used for form handling, GETappends the indicated variable name(s) andvalue(s) to the URL designated in the ACTIONattribute with a question mark separator andsubmits the whole thing to the processing agent (in this case a Web server). This is an example HTML form using the GETmethod (save the file under the nameteam_select.html):
Please visit our professional web hosting services to find out about cheap and reliable webhost service that will surely answer all your demands.