129Chapter 7Passing Information between (Web site designers) Pagesbecause some browsers don t

129Chapter 7Passing Information between Pagesbecause some browsers don t actually submit the Submitvalue if a user hits Enter instead ofclicking the button. Using array variables with formsIn all the examples so far, each form field created a variable of the string or integer types. This implies that there is a one-to-one relationship between a form field and a form-handlervariable. But PHP also allows you to post an array-type variable. (If you don t yet have a good grip on arrays, come back to this section after you read Chapter 9). Listing 7-2 is an example of a script that creates an array from the names of the form fields inan HTML form. Listing 7-2:Form passing an array of variables (geek_quiz.php)


EOHEADER; // The footer which appears in both cases// ————————————– Continued09
If you are searching for cheap webhost for your web application, please visit MySQL5 Web Hosting services.

Leave a Reply