Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Dynamic Web Pages Ch 1 V1.0
1. Chapter 1 Site management & Sending & Receiving data between pages.
2.
3. How PHP Pages are Accessed and Interpreted We will use WAMPS (Windows, apache, mysql, php server) and it will be locally installed on the lab machines.
22. WARNING: Using Variables with Undefined Values If you accidentally use a variable that does not have a value assigned to it will have no value (called a null value).When a variable with a null value is used in an expression PHP, PHP may not generate an error and may complete the expression evaluation. For example, the following PHP script will output x= y=4. <?php $y = 3; $y=$y + $x + 1; // $x has a null value print ("x=$x y=$y"); ?>
41. Creating a remote site Note: You will have to create this folders, newlandStart. This can be done using the browse button. wampwwis the default directory.
51. Another Full Script Example 1.<html> 2.<head> <title> A Simple Form </title> </head> 3.<body> 4.<form action="http://webwizard.aw.com/~phppgm/First.php" method="post" > 5. Click submit to start our initial PHP program. 6. <br> <input type="submit" value="Click To Submit"> 7. <input type="reset" value="Erase and Restart"> 8. </form> 9. </body> </html>
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66. Retrieving data via URL 2 Select the URL Variable and the screen below will appear. Put the name of the variable from the page calling this one, as shown; firstName The new binding as shown will appear. Drag it to where the variable should be shown. The next slide shows this.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80. unit2sendingpage.php When you click on the “Display Home “ Button the next page appears showing the city that was typed in on this page. If you click on the link “Click Here” then it takes you to the “unit2urlactionpage.php”. The link passes your name in the URL.