känguru: POST funktioniert auf einmal nicht mehr

Beitrag lesen

So, ich habe nun alles ausprobiert und es liegt am empfangenden PHP-Script. Allerdings verstehe ich nicht warum es sich so verhält.

Ich übergeb ja die Daten per Post, so lange ich sie im anderen Script nicht anspreche (egal ob if-Abfrage oder in andere Variable schreiben), sind sie vorhanden.

Als Besipiel:

  
<?php  
  
//include 'connect.php';  
echo '<pre>';  
print_r($_POST);  
print_r($_GET);  
echo '</pre>';  
?>  

funktioniert und gibt folgendes aus ~~~html

Array
(
    [goal_home] => Array
        (
            [1] => 1
            [2] => 2
            [3] =>
            [4] =>
            [5] => 8
            [6] =>
            [7] =>
            [8] =>
            [9] => 20
        )

[goal_guest] => Array
        (
            [1] => 1
            [2] => 2
            [3] =>
            [4] =>
            [5] => 8
            [6] =>
            [7] =>
            [8] =>
            [9] => 20
        )

[matchesid] => Array
        (
            [1] => 1
            [2] => 2
            [3] => 3
            [4] => 4
            [5] => 5
            [6] => 6
            [7] => 7
            [8] => 8
            [9] => 9
        )

[x] => 25
    [y] => 10
)
Array
(
)

  
Sobald ich es das Script erweitere:  
~~~php
  
<?php  
  
//include 'connect.php';  
echo '<pre>';  
print_r($_POST);  
print_r($_GET);  
echo '</pre>';  
  
$xyz = $_POST['matchesid'];  
$goal_home = $_POST['goal_home'];  
$goal_guest = $_POST['goal_guest'];  
?>  

kommt folgendes:

  
Array  
(  
)  
Array  
(  
)  
  
  
Notice: Undefined index: matchesid in C:\xampp\htdocs\top_goal\new\bet.php on line 9  
  
Notice: Undefined index: goal_home in C:\xampp\htdocs\top_goal\new\bet.php on line 10  
  
Notice: Undefined index: goal_guest in C:\xampp\htdocs\top_goal\new\bet.php on line 11  

Ich versteh gerade die Welt nicht mehr und wäre über jeden Hilfeansatz erfreut.

Danke auch an alle vorherigen Helfer