A Super-Simple PHP Tutorial for Beginning to Code — Part 2

A Super-Simple PHP Tutorial for Beginning to Code — Part 2

A Super-Simple PHP Tutorial for Beginning to Code — Part 2. So, what’s going on here? In a PHP logical expression ! means “not.” So if you’ve passed in a name from a form, it is stored in a cookie. Otherwise, read it in from a cookie.

Purpose of this part:

  • To be able to communicate between pages. For example, on one page you enter data, submit it and then display it on another page.
  • Click here to get back to Part 1

Prerequisites

  • Basic understanding of  HTML5 forms and inputs, Note — in the old days, in order to validate inputs or offer pop-up calendars, you needed to use javascript. Now HTML5 has that built in.
  • Basic understanding of HTML Tables.

Basic Concepts

A browser has 3 ways to communicate to the server:

  • GET (when you submit a form, placing the key/value pairs in the URL,
  • POST (when you submit a form in POST mode, transmitted to the server without being in the URL)
  • COOKIE (Stored in your browser and transmitted to the server with every call)
  • These are read on the server in pre-defined associative arrays  $_COOKIE,  $_GET and $_POST. (All of these are actually transmitted together in a larger array $_REQUEST but you rarely need to know that).

Example of $_GET

  • In your directory, create index.php as a entry page that says you want to see a table with a number of rows and columns. Note, there is actually no hp in this page. That’s not unusual in a home page!

codingbootcamp php beginner-coding tutorial

What is Geek Coin

What is GeekCash, Geek Token

Best Visual Studio Code Themes of 2021

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Data Visualization in R with ggplot2: A Beginner Tutorial

Data Visualization in R with ggplot2: A Beginner Tutorial. Learn to visualize your data using R and ggplot2 in this beginner-friendly tutorial that walks you through building a chart for data analysis.

Guidelines for Java Code Reviews

Guidelines for Java Code Reviews.Get a jump-start on your next code review session with this list.

A Super-Simple PHP Tutorial for Beginning to Code — Part 1

Start with a clear purpose statement for the tutorial — why would one want to take it? A Super-Simple PHP Tutorial for Beginning to Code — Part 1. Provide a link to a super-simple tutorial on those subjects. To provide bright beginners the basic knowledge to create their first dynamic web applications in PHP (Part 1)

PHP With MySQL Tutorial For Beginners | PHP And MySQL Database Tutorial | PHP Tutorial

This video on PHP with MySQL tutorial will help you learn all thehow ton create a webpage and database using Xampp on visual studio. The demo includes all the fundamental concepts of PHP.

1: Introduction To PHP | Procedural PHP Tutorial For Beginners | PHP Tutorial

For a long time now, my PHP tutorial course has been in need of an upgrade. So here is episode 1 on my new Procedural PHP tutorial course for beginners! For ...