Sunteți pe pagina 1din 1

#!

/usr/local/bin/php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>PHP - Variables</title>
</head>
<body>
<?php
// php script follows
// this file is called by class_variables.html
$name = $_POST['formName'];
$office = $_POST['formOffice'];
$ext
= $_POST['formExt'];
$email = $_POST['formEmail'];
print "<p>Name: $name<br />\n
Office: $office<br />\n
Telephone Extension: $ext<br />\n
Email: $email</p>";
?>
</body>
</html>

S-ar putea să vă placă și