Forms and User Input continued

The sample page in the previous post contains two input fields that are name and age, when the user inputs the data and clicks on the submit button, the form’s data is sent to the file “welcome.php” file. The resulting php file would look something like this:



Welcome .

You are years old

The output of the script we made would look like:
Welcome Ernie
You are 35 years old.

That would be an overview of the full potential of the $_GET and $_POST variables and they will be discussed in depth later as we go deeper into their functionality in PHP scripts.

Comments are closed.


Parse error: syntax error, unexpected T_STRING in /home/spm011/public_html/phpprogrammingguide/wp-content/themes/basic-concept-10/footer.php on line 8