1. Fill in the blank.
<____ action="send-email.php" method="post">
That's correct. Well done!
The correct code:
form
Press Tab or click button to advance to next exercise.
2. Fill in the blank.
<form _____="send-email.php" method="post">
That's correct. Well done!
The correct code:
action
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
3. Fill in the blank.
<form action="send-email.php" _____="post">
That's correct. Well done!
The correct code:
method
Press Tab or click button to advance to next exercise.
4. Fill in the blank.
__________"send-email.php" method="post">
That's correct. Well done!
The correct code:
<form action=
Press Tab or click button to advance to next exercise.
5. Drag-and-drop: Holding down the left mouse button, drag the pieces of code onto the screen to code a form tag.
6. Click in the box and type the next character. I'll autocomplete. Don't type spaces or carriage returns. When the exercise is complete, I'll turn the exercise number green.
Fill in the blank if you are processing lengthy information that needs to be secure.
<form action="send-email.php" ____________
That's correct. Well done!
Press Tab or click button to advance to next exercise.
7. Fail-safe coding. If you type the wrong character, I'll cancel the keystroke. Type spaces. When the exercise is complete, I'll turn the exercise number green.
Fill in the blank if it's a small amount of information that doesn't need to be secure, as in a search.
<form action="search.php" ____________
Press Tab or click button to advance to next exercise.
That's correct. Well done!
8. The following code produces the same result as what code? Code the entire form tag.
<form action="x.php">
That's correct. Well done!
The correct code:
<form action="x.php" method="get">
Press Tab or click button to advance to next exercise.
9. The function of a PHP or other program called in the form tag is to _______(7 characters) ____(4 characters).
That's correct. Well done!
The correct answer:
process data
Press Tab or click button to advance to next exercise.
10. In a form tag a PHP script is only one kind of program that can be called to process data. Name another language, mentioned in the book, that might be used.
That's correct. Well done!
The correct answer:
Any of these:
Ruby, Python, Perl, Java, or C#
Press Tab or click button to advance to next exercise.
11. Code the form tag that produces this string of characters in the browser's address bar. Assume that the program srch.php has been called. Specify a method.
http://www.xyz.com/search?qt=dismax&sort=score+desc&query=loris&submit=
That's correct. Well done!
The correct code:
<form action="srch.php" method="get">
Press Tab or click button to advance to next exercise.
12. Code a form tag that specifies y.php to process the data. Use the more secure method.
That's correct. Well done!
The correct code:
<form action="y.php" method="post">
Press Tab or click button to advance to next exercise.
The next several exercises are timed. If you type slowly or dislike time pressure, feel free to increase the allotted time.
13. Time goal: 15 seconds. Fill in the blank if it's a small amount of information that doesn't need to be secure, as in a search.
<form action="search.php" ____________
Press Tab or click button to check answer.
The correct code:
method="get">
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
14. Time goal: 35 seconds. The following code produces the same result as what code? Code the entire form tag.
<form action="x.php">
Press Tab or click button to check answer.
The correct code:
<form action="x.php" method="get">
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
15. Time goal: 15 seconds. The function of a PHP or other program called in the form tag is to _______(7 characters) ____(4 characters).
Press Tab or click button to check answer.
The correct answer:
process data
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
16. Time goal: 15 seconds. In a form tag a PHP script is only one kind of program that can be called to process data. Name another language, mentioned in the book, that might be used.
Press Tab or click button to check answer.
The correct answer:
Any of these:
Ruby, Python, Perl, Java, or C#
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
17. Time goal: 40 seconds. Code the form tag that produces this string of characters in the browser's address bar. Assume that the program srch.php has been called. Specify a method.
http://www.xyz.com/search?qt=dismax&sort=score+desc&query=loris&submit=
Press Tab or click button to check answer.
The correct code:
<form action="srch.php" method="get">
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
18. Time goal: 35 seconds. Code a form tag that specifies y.php to process the data. Use the more secure method.
Press Tab or click button to check answer.
The correct code:
<form action="y.php" method="post">
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
19. Time goal: 40 seconds. Code a form tag that specifies hi.php to process the data. Use the more secure method.
Press Tab or click button to check answer.
The correct code:
<form action="hi.php" method="post">
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
19. Time goal: 40 seconds. Code an opening form tag that calls a php script and uses the less secure method. Make up the name of the php script.
Press Tab or click button to check answer.
Example:
<form action="search.php" method="get">
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
Post a review on Amazon for the paperback or the Kindle edition.
Email me to give me a compliment, complaint, or correction. I'll respond.
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19
1
0