PHP

Introduction

PHP : PHP Hypertext Preprocessor is a programming language that allows developers to create dynamic content that interact with databses. It is used to create web based software applications.

Get WAMP / MAMP for windows / linux.

Hello World


<!-- /htdocs/index.php-->
<body>
<?php
echo "Hello World";
?>
</body>


Forms and requests


<!-- /htdocs/index.php-->
<form action="process.php" method="post">
Enter your name <input name="name" type="text">
<input type="submit">
</form>

<!-- /htdocs/process.php-->
<body>
<?php
echo "Hello ," . $_POST["name"];
?>
</body>




Last Modified: 16th Aug 2020