What is PHP
PHP is a server side scripting language. that is used to develop Static websites or Dynamic websites or Web applications. PHP stands for Hypertext Pre-processor, that earlier stood for Personal Home Pages.
-PHP scripts can only be interpreted on a server that has PHP installed.
-The client computers accessing the PHP scripts require a web browser only.
Why Use PHP
You have obviously heard of a number of programming languages out there; you may be wondering why we would want to use PHP as our poison for the web programming. Below are some of the compelling reasons.
    -PHP is open source and free.
    -Short learning curve compared to other languages such as JSP, ASP etc.
    -Large community document
    -Most web hosting servers support PHP by default unlike other languages such as ASP that need IIS. This makes PHP a cost effective choice.
    -PHP is regular updated to keep abreast with the latest technology trends.
    -Other benefit that you get with PHP is that it’s a server side scripting language; this means you only need to install it on the server and client computers requesting for resources from the server do not need to have PHP installed; only a web browser would be enough.
    -PHP has in built support for working hand in hand with MySQL; this doesn’t mean you can’t use PHP with other database management systems. You can still use PHP with
        +Postgres
        + Oracle
        +MS SQL Server
        +ODBC etc
    -PHP is cross platform; this means you can deploy your application on a number of different operating systems such as windows, Linux, Mac OS etc.
PHP File Extensions
File extension and Tags In order for the server to identify our PHP files and scripts, we must save the file with the “.php” extension. Older PHP file extensions include
    .phtml
    .php3
    .php4
    .php5
    .phps
PHP: Basic Form Handing in PHP
By popular demand, here are some basic instructions for setting up a form handler in PHP to verify user input and send an email or display an error message in case the validation fails.
Example
<html>
<head>
</head>
<body>
Name <?php echo $_POST['name'] ;?>
Gender<?php echo $_POST['gender'];?>
Phone<?php echo $_POST['phone'];?>
</body>
</html>
Note: Save->Filename.php
<html>
<head>
<title>PHP For Hading </title>
</head>
<body>
<form action="FileName.php" method="Post">
Name:<input type="text" name="name">
Gender:<input type="text" name="gender">
Phone Number:<input type="text" name="phone">
<input type="submit" value="Test">
</body>
</html>
Please Watching my Video is Below
No comments:
Post a Comment