Monday, October 28, 2019

WEEK 6: SERVER SIDE SCRIPT (PHP)

PHP is popular and its use in increasing rapidly because several advantage:
  • Easy to use 
  • Secure and easy to learn
  • easy to learn
  • open source
  • language support for database
  • must using php extension
The way to write code using php

<html> Server Side Script:  PHP
  <?php 
  echo <h1> Hello, World!>/h1>;  
  ?>
</html>

Operators

1. Arithmetic Operators

2. Comparison operators


SERVER SIDE SCRIPT(PHP) & FORM


PHP is really good at handling data submitted to the server in HTML forms.
simple form:
<form METHOD= “GET”
      ACTION= “process.php”>

Two main attributes

Method: Get and post
Action: specify the target which where is data be transmitted.














No comments:

Post a Comment