Browse Source

post dump

Axel Nordh 4 năm trước cách đây
mục cha
commit
908d129fa7
2 tập tin đã thay đổi với 8 bổ sung3 xóa
  1. 2 2
      OddsJavaFx/src/web/index.php
  2. 6 1
      OddsJavaFx/src/web/matchTable.php

+ 2 - 2
OddsJavaFx/src/web/index.php

@@ -14,7 +14,7 @@ $leagues = $conn->getLeagues();
 <body>
 <H2>Odds</H2>
 
-<form id="selectionForm" action="matchTable.php">
+<form id="selectionForm" action="matchTable.php" method="post">
     <label for="countrySelector">Select country: </label>
     
     <select name="countrySelector" id="countrySelector">
@@ -35,7 +35,7 @@ $leagues = $conn->getLeagues();
     ?>
     </select>
     
-	<input type='submit' id='getMatches' value='Submit Score'>Se Matcher</td>
+	<input type='submit' id='getMatches' value='Se Matcher'/>
 	
 </form>
 </br>

+ 6 - 1
OddsJavaFx/src/web/matchTable.php

@@ -1 +1,6 @@
-<?php echo "HEJ"; ?>
+<?php 
+
+var_dump($_POST);
+
+
+?>