homebusinessblogart

PHP

Introduction

PHP: PHP Hypertext Preprocessor is a programming language that allows developers to create dynamic content that interacts with databases. It is used to develop 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: 16 Aug 2020