hi.
I understand the reasons for why this can occur but I cannot find the error in my script) I have issued the part that I believe the error could be in. Any help would be greatly appreciated. Thanks😕
<?php
if ($selected_radio = $POST['mainMenu']);
if($selected_radio == 'checked'){
$beef_status = 'unchecked';
$chicken_status = 'unchecked';
$pork_status = 'unchecked';
$vegetarian_status = 'unchecked';
if ($selected_radio == 'beef') {
$beef_status = 'checked';
}
if ($selected_radio == 'chicken') {
$chicken_status = 'checked';
}
if ($selected_radio == 'pork') {
$pork_status = 'checked';
}
if ($selected_radio == 'vegetarian') {
$vegetarian_status = 'checked';
}
return $mainMenu;
}
if ($selected_radio = $_POST['guestMenu']);
if ($_selected_radio == 'checked'){
$beef_status = 'unchecked';
$chicken_status = 'unchecked';
$pork_status = 'unchecked';
$vegetarian_status = 'unchecked';
if ($selected_radio == 'beef') {
$beef_status = 'checked';
}
if ($selected_radio == 'chicken') {
$chicken_status = 'checked';
}
if ($selected_radio == 'pork') {
$pork_status = 'checked';
}
if ($selected_radio == 'vegetarian') {
$vegetarian_status = 'checked';
}
return $guestMenu;
}
if (file_exists("upload/" . $_FILES["upload"]["upload.php"])) //This is the folder in your site folder for file upload//
{
$error_msg[]= $_FILES["upload"]["process.php"] . " already exists";
}
if ($error_msg){
$display_errors = $_FILES["rsvp"]["error.html"];
}
if ($_POST['form_submitted'] != '1') {
Form not submitted, show form
}
else {
if ($_POST['form_submitted'] = '1') {
Process script, form was submitted;
Redirect visitor to the thank you page, $header("location: thankyou.html");
}
?>