I have a self calling page, with form:
<form id="frmSelect" action="<?php echo $_SERVER['PHP SELF'] ?>" method="GET" >
<p>Use selection box to choose an option:
<select name="chooseAction" >
<option value="Evaluate">Evaluate my site</option>
<option value="Help">Get Help</option>
</select>
<input type="submit" value="Send"/>
</p>
</form>
<?php // here we check if the form is coming back
$curReq=$_SERVER['REQUEST_METHOD'];
$chosen=$_GET['chooseAction'];
if ($curReq=='GET' && $chosen){
//the page is coming back with selection
if ($chosen=='Evaluate'){
include 'EvalFrm.html';
}
elseif($chosen=='Help'){
include 'HelpFrm.html';
}
}
both EvalFrm and HelpFrm have the following:
<form id="frmEval" class="emailfrm" action="<?php Form_to_Email.php ?>" method="post" >
but I never get to Form_to_email.php. It just posts back to the original page. Please help!!
Aucun commentaire:
Enregistrer un commentaire