Skip to content

Commit

Permalink
Form "Method Not Allowed" Hotfix
Browse files Browse the repository at this point in the history
Found by Cooper - http://www.sidengel.com/wp-content/uploads/2017/03/AeWGfPZ.png

Fixed by changing the form capture method to GET, instead of POST.

Also, cleaned up the CSS a little bit.
  • Loading branch information
Sid Engel committed Mar 5, 2017
1 parent 75b03ef commit 5016b76
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 deletions.
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
Expand Down Expand Up @@ -268,7 +267,7 @@ <h2>Server Screenshots</h2>
<div class="col-md-6" id="content-6">
<div class="form-area">
<h2>Report</h2>
<form role="form" action="send_form_email.php" method="post" name="reportForm" type="text">
<form role="form" action="send_form_email.php" method="get" name="reportForm" type="text">
<div class="form-group">
<input type="text" class="form-control" id="name" name="name" placeholder="*Name" required />
</div>
Expand Down
10 changes: 5 additions & 5 deletions send_form_email.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
$myemail = "[email protected]";

/* Check all form inputs using check_input function */
if (isset($_POST["submit"])) {
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$cords = $_POST['cords'];
if (isset($_GET["submit"])) {
$name = $_GET['name'];
$email = $_GET['email'];
$message = $_GET['message'];
$cords = $_GET['cords'];
}
else {
echo $myError;
Expand Down
15 changes: 4 additions & 11 deletions src/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,9 @@ Should probably not mess with this... */

/* Column Margin/Spacing Adjustment
Should probably not mess with this... */
.content-6 .col-md-6 {
margin-left: 25%;
}

/* Column Margin/Spacing Adjustment
Should probably not mess with this... */
Expand Down Expand Up @@ -345,14 +348,4 @@ Should probably not mess with this... */
.sub-footer .row {
margin-left: 25%;
}
}
@media (max-width: 992px) {
.content-3 .col-md-4 {
display: none;
}
}
@media (min-width: 992px) {
.content-6 .col-md-6 {
margin-left: 25%;
}
}
}

0 comments on commit 5016b76

Please sign in to comment.