PHP - PHP: Hypertext Preprocessor Chapter 9 and Chapter 13...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
PHP: Hypertext Preprocessor Chapter 9 and Chapter 13 (p560-581) http://www.php.net/manual/en/langref.php
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Client Side VS. Server Side <table border="1"> </table> <tr> </tr> <td> <script> document.write(1+1); </script> </td> <td> <?php echo 2+2; ?> </td>
Background image of page 2
Tag <?php ?> Variable $s=“hello”; $i=1; Output <?php echo “hello”; ?> or <?php print “hello”; ?> Concatenation <?php echo “hello”.“ world”; ?> ***No space before or after concatenation operator Global Variables for Form Processing Depend on method used by <form> <?php $id=$_GET[“id”]; ?> OR <?php $id=$_POST[“id”]; ?> OR $_REQUEST[] contains $_GET[], $_POST[], and $_COOKIE. Comment // Single line comment /* Multiple lines comment */ Forward <?php header(‘Location: http://localhost/list.php’); ?>
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
All-in-One: HTML, CSS, JavaScript, PHP 1. <script> 2. alert("Hello"); 3. </script> 4. <style> 5. td{color: red;} 6. </style> 7. <?php $x=1; ?> 8. <table border="1"> 9. <tr>
Background image of page 4
Table name and column names are case sensitive. String value must be in quotation marks.
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 10

PHP - PHP: Hypertext Preprocessor Chapter 9 and Chapter 13...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online