It’s been a long time since my last PHP post, so today we will start with some basic example of a PHP program

What is PHP?, well from Wikipedia we have:

PHP: Hypertext Preprocessor is a widely used, general-purpose scripting language that was originally designed for web development to produce dynamic web pages. For this purpose, PHP code is embedded into the HTML source document and interpreted by a web server with a PHP processor module, which generates the web page document. As a general-purpose programming language, PHP code is processed by an interpreter application in command-line mode performing desired operating system operations and producing program output on its standard output channel. It may also function as a graphical application. PHP is available as a processor for most modern web servers and as standalone interpreter on most operating systems and computing platforms.

PHP was originally created by Rasmus Lerdorf in 1995[1] and has been in continuous development ever since. The main implementation of PHP is now produced by The PHP Group and serves as the de facto standard for PHP as there is no formal specification.[2] PHP is free software released under the PHP License.

Well now let’s go with our first example of PHP programming. This example will let you acquire some data and then print it on the screen. As simple as that.

<title>My first PHP</title>
<form name="form1" method="get" action "example.php">
Name <input name="name" type="text"><br>
Last name <input name="last_name" type="text"><br>
Address <input name="address" type="text"><br>
<input type="submit" name="submit" value="Send"><br>
      print $_GET['name'];
      print $_GET['last_name'];
      print $_GET['address'];

The result will look like this: