background preloader

PHP

Facebook Twitter

Related:www.learnphp-tutorial.com/ php tutorial. PHP 101: PHP For the Absolute Beginner. PHP Tutorial - Part 6. Introduction In the last part, I showed you how to use PHP to send e-mail messages using a script. In this part I will continue this and also show you how to use PHP and forms together to make your PHP scripts useful. Setting Up Your Form Setting up a form for use with a PHP script is exactly the same as normal in HTML. As this is a PHP tutorial I will not go into depth in how to write your form but I will show you three of the main pieces of code you must know: <input type="text" name="thebox" value="Your Name"> Will display a text input box with Your Name written in it as default. The value section of this code is optional. All the elements for your form must be enclosed in the <form> tags.

It really makes no difference which system you use but it is normally better to use POST if you are using passwords or sensitive information as they should not be shown in the browser's address bar. Getting The Form Information This works the same as submitting a form using GET. Yourpage.php? Part 7. PHP Manual.