I dont know why this is happening and I tried it locally as well as on my server but the submit button doesnt work for some reason, I tried searching it up and I cant find any solution. Whenever I press the submit button it just doesnt do anything. Here is the code in index.php (I also tried using .html but that doesnt help (even though that shouldnt make a difference)):
<!DOCTYPE html> <html> <body> <h1>SkyGroup Seat Configuration Generator (SGCG)</h1> <form method="get" action="calc.php" > Max Certified Seats: <input name="maxseats" type="text"><br/> How many classes configuration: <br/> <select name="classes"> <option>Single (All economy)</option> <option>Dual (Eco+Business)</option> <option>3-class (Eco, Business, and First)</option> </select> </br> Target Business Seats: <input name="business" type="text" ></br> Target First Class Seats: <input name="business" type="text"></form></body></html></br> *You dont need to select economy class seats as they will be used to fill up the rest of the capacity.</br> How high quality is your airline? <select name="quality"> <option>2 stars</option> <option>3 stars</option> <option>4 stars</option> <option>5 stars</option> </select> </br> <input type="submit" name="submit" Value="Generate!" > </form> </body></html>
and here is calc.php (even though I dont think thats the issue)
<?php
//Input Variables Processing
$maxSeats = $_GET["maxseats"];
//$classConfig = $_GET["classes"];
if ($_GET["classes"] == "Single (All economy)") {$classConfig = 1};
elseif ($_GET["classes"] == "Dual (Eco+Business)") {$classConfig = 2};
elseif ($_GET["classes"] == "3-class (Eco, Business, and First)") {$classConfig = 3};
else {echo "Cant Find Class Configuration"};
echo $classConfig;
?>
I didnt finish calc.php because I wanted to test it out to see if the form works.
Thanks, Tim
this is for an online game just FYI

New Topic/Question
Reply


MultiQuote




|