Exercise:
1 <form> In the tag, what are the roles of the method and Action attributes?
2 fill in the following brackets with appropriate content (password, button, text, hidden, radio, checkbox, submit, Image
Reset) is used as the required form control.
<Input type = ()/> Create and submit button.
<Input type = ()/> Create reset button.
<Input type = ()/> Create Custom button.
<Input type = ()/> Create text box button:
<Input type = ()/> Create Password dialog box:
<Input type = ()/> Create radio button:
<Input type = ()/> Create check box:
<Input type = ()/> Create Image submit button
<Input type = ()/> Create a hidden field?
3. Which of the following methods can be used to obtain the value of form variables in PHP?
4. How should I name the values of a set of check boxes quickly obtained in PHP?
5. The common and drop-down lists are created with the <SELECT> and <option> tags. What are the differences between these two types of lists?
6. Single-line text boxes and multi-line text boxes (text areas) are created with the same HTML Tag. Is this true? Why?
7. What spry components does dreamweavercs3 provide for form verification?
8. What status does spry verify the text domain? When can I use it to verify the content of a text box?
9. In dreamweavercs3, how do I set an error message for Spry verification text fields?
10. How can I generate URL parameters? In PHP, how does one retrieve URL parameters?
11. How do I jump between different pages?
12. In PHP, how do I start a session? How to store information using session variables?
13. In PHP, how do I cancel all session variables in the current session? How to end a session?
14. What is Cookie? What are its advantages and disadvantages?
15 in PHP, how does one send a cookie to the client? How do I retrieve information from COOKIE variables?
16 in PHP, how do I delete a cookie?
Lab questions:
1. create a PHP dynamic web page and insert a form. The form contains a set of check boxes, submit buttons, and reset buttons in the text box, password box, text area, and radio button, when you load the page in a browser, all form controls are displayed. Click (submit) to hide the existing form controls and display the values of these form controls.
2. Create a PHP dynamic web page and insert a form to fill in personal information. The form must contain spry verification text fields, SPT verification text areas, spry verification check boxes, and spry verification selection boxes for the following verification functions: enter the user name, electronic parcel address, date of birth, and personal homepage URL in the text box for required or format verification; when entering a personal profile in the text area, you must enter the verification and display a counter of. Use the check box to select at least two of your favorite professional time limits, and select up to three; when selecting a course from the list box, you can select a prompt or separator. .
3. create a PHP dynamic web page and insert a form. The form must be submitted using the get method. The form contains some form controls. All Form Controls are displayed when the page is loaded in the browser, click (submit) to hide all Form Controls and display the values of these form controls.
4. create two PHP dynamic web pages, which are used to simulate the login page and homepage of the website respectively. You must pass the monthly production name to the homepage through session variables when submitting the login information, the homepage displays the welcome information for this user. You must also set a "logout" link on the top of the homepage. When you click this link, all session variables are published and the session is ended. If the home page is directly opened without a logon page, it is redirected to the logon page and an error message is displayed.
5. create two PHP dynamic web pages to simulate the login page and homepage of the website respectively, on the logon page, you are required to set the incorrect period J of the cookie. When submitting the logon information, pass the user name to the homepage through the cookie variable, and display the welcome information and the last access time on the homepage, you must also set a "logout" link on the homepage. This link is only visible to logged-on users. When you click this link, the cookie variable is deleted. If you directly open the home page without a logon page, the welcome information for "Tourists" is displayed.