stolzyboy wrote:where is your php code to include the form?
This is the whole code. The idea is for the form to submit the form selected back to the same page in the server for processing. By doing so the selected form will be dynamically be displayed.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
</head>
<body>
<div id="content" align= "center">
<h1>Access Login Form</h1>
Please make your choice from the menu below and fill the form.
</div>
<form action="Forms5-5.php" method="get" enctype="application/x-www-form-urlencoded" >
<select name="select" value = "active" >
<option value="feedback5.php" selected>Feedback Form</option>
<option value="help5.php" selected>Help Request Form</option>
</select>
<p>
<input type= 'submit' value= 'Submit' />
</p>
</body>
</html>
<?php
if($_SERVER['REQUEST_METHOD']=="GET") {
if($selected(feedback5.php)
&selected == "feedback5.php";
}
elseif{
selected(help5.php){
$selected == "help.php";
}
$name= $_post['name'];
$email= $_post['email'];
$address= $_post['address'];
$msg= $_post['message'];
printf($name, $email, $address, $msg);
printf $formselected();
}else{
die('nothing was posted') ;
}
?>