Saturday, October 25, 2008

Class 6 notes

< ?= ?>
[without the space between the less than and the question mark]
is a short-hand for echo ""; in php

$fullName = $_REQUEST['first_name'];
echo "Hello," . " . firstName;

$_REQUEST handles both GET and POST methods

. is the equivalent of adding two text elements together.

php.net The official PHP site.

No comments: