I and taking a class on PHP and am having trouble getting something to work. I am doing a form to POST info and have the php page respond back.
Compose a script that accepts four string variables fed from an html form and returns an html table, with each row displaying the variable's row number, data type, name and value.
I did the form OK, I just have no idea how to get the response back as a table. Any ideas? I am so clueless with XHTML and 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>
<meta http-equiv="Content-Type"
content="text/html; charset=utf-8" />
<title>Feedback Form</title>
</head>
<body>
<div><p>This is a form:</p>
<form action="response.php" method="post">
<p>Name:<input type="text\"
name=\"name\" size=\"20\" /></p>
<p>Email Address: <input type="text"
name+"email" size="20" /></p>
<p>Date of Birth: <input type="text"
name+"email" size="20" /></p>
<p>Student ID <input type="text"
name+"email" size="20" /></p>
<input type="submit" name="submit"
value="Submit" />
</form>
</div>
</body>
</html>
Compose a script that accepts four string variables fed from an html form and returns an html table, with each row displaying the variable's row number, data type, name and value.
I did the form OK, I just have no idea how to get the response back as a table. Any ideas? I am so clueless with XHTML and 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>
<meta http-equiv="Content-Type"
content="text/html; charset=utf-8" />
<title>Feedback Form</title>
</head>
<body>
<div><p>This is a form:</p>
<form action="response.php" method="post">
<p>Name:<input type="text\"
name=\"name\" size=\"20\" /></p>
<p>Email Address: <input type="text"
name+"email" size="20" /></p>
<p>Date of Birth: <input type="text"
name+"email" size="20" /></p>
<p>Student ID <input type="text"
name+"email" size="20" /></p>
<input type="submit" name="submit"
value="Submit" />
</form>
</div>
</body>
</html>
