Yes, sorry POST exists.
So ,why I can´t process the $_POST,$_GET if I can process the rest of the commands of PHP.
My HTML form Is:
<!DOCTYPE html PUBLIC "-//W3C//DTD/XHTML 1.0 Transitional//EN"
"
http://www.w3.org/TR/xhtml1/DTD/xhtml11 ... tional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>A Web Page</title>
</head>
<body>
<form action="process.php" method="post">
First Name: <input type="text" name="Fname"/>
Last Name: <input type="text" name="LName"/>
City: <input type="text" name="City"/>
State: <input type="text" name="State"/>
Message: <textarea name="Message" cols="30" rows="5"></textarea>
<input type="submit" name="submit" value="Submit Data"/>
</form>
</body>
</html>
My process.php file is:
<?php
echo (isset($_POST)) ? "POST exists" : "POST does not exist";
echo $_POST["Fname"];
echo "Your First Name is: " . $_POST['FName'] . "<br/>";
echo "Your Last Name is: " . $_POST['LName'] . "<br/>";
echo "Your City is: " . $_POST['City'] . "<br/>";
echo "Your State is: " . $_POST['State'] . "<br/>";
echo "<br/>";
echo "Your Message is: " . $_POST['Message'];
?>
and the
output localhost/process.php is:
POST exists
( ! ) Notice: Undefined index: Fname in C:\webserver\www\process.php on line 6
Call Stack
# Time Memory Function Location
1 0.0011 367136 {main}( ) ..\process.php:0
( ! ) Notice: Undefined index: FName in C:\webserver\www\process.php on line 7
Call Stack
# Time Memory Function Location
1 0.0011 367136 {main}( ) ..\process.php:0
Your First Name is:
( ! ) Notice: Undefined index: LName in C:\webserver\www\process.php on line 8
Call Stack
# Time Memory Function Location
1 0.0011 367136 {main}( ) ..\process.php:0
Your Last Name is:
( ! ) Notice: Undefined index: City in C:\webserver\www\process.php on line 9
Call Stack
# Time Memory Function Location
1 0.0011 367136 {main}( ) ..\process.php:0
Your City is:
( ! ) Notice: Undefined index: State in C:\webserver\www\process.php on line 10
Call Stack
# Time Memory Function Location
1 0.0011 367136 {main}( ) ..\process.php:0
Your State is:
( ! ) Notice: Undefined index: Message in C:\webserver\www\process.php on line 12
Call Stack
# Time Memory Function Location
1 0.0011 367136 {main}( ) ..\process.php:0
Your Message is: