i have created a survey web page using xhtml, javascript for client side validation and php for server side validation, logic, database updates and to send an email notification that the survey has been completed.
the whole thing works fine on my laptop and pc and my friend's home pc's however on the charity's internal network the html page displays and javascript validation works fine however when the submit button is pressed, configured as below, nothing happens-
Code: Select all
<form action="mainsub.php" method="post">
<form id="form1" name="form1" method="post" action="">
...html form code for radio button's, text areas etc
<input type="submit" name="SUBMIT" id="SUBMIT" value="Submit" accesskey="s" />
Code: Select all
$rating = Array(0=>'Strongly Agree',
1=>'Agree',
2=>'Neutral',
3=>'Disagree',
4=>'Strongly disagree');
// Get all $_POST variables
foreach($_POST as $var => $val) { ${$var} = $val; }
$response8bTel = "tel8b_".$rank1_5[$tel8bGroup];
$body_body .= "----------------------------------------------------\n";
$to = 'jim <james@########.co.uk>';
$subject = 'Website Survey Results';
$body = $body_body.$body_footer;
mail($to, $subject, $body);
echo '<div style="white-space: pre">';
print_r(str_replace("\n", "<br />",$body));
echo '</div>';