I can't seem to retrieve the values of the post variables from the HTML form .. for some reason .. This is usually straightforward , but when I go to the score PHP file .. none of the form values are retrieved :(
<?php
$id = $_GET['id'];    
?>
 <form action="score.php" method ="post">
    <table border="0">
        <tr> 
            <td>
                <input type="radio" name="score" id="<?php echo $id ?>" value="2" />      
                <img style ="position:relative; left:-90;top:-20" src="./images/+2.png" /> 
            </td> 
        </tr>
        <tr>
            <td>
                <input type="radio" name="score" id="<?php echo $id ?>" value="3"/>
                <img style ="position:relative; left:-90;top:-20" src="./images/+3.png" /> 
            </td>
        </tr>                    
        <tr>
            <td>
                <input type="radio" name="score" id="<?php echo $id ?>" value="-1" /> 
                <img style ="position:relative; left:-90;top:-20" src="./images/-1.png" /> 
            </td>
        </tr>
        <tr>
            <td>
                <input type="radio" name="score" id="<?php echo $id ?>" value="-2"/>
                <img style ="position:relative; left:-90;top:-20" src="./images/-2.png" />
            </td>
        </tr> 
        <tr>
            <td>
                <input type="submit" id="mysubmit" value="Submit score"  />
            </td>
        </tr>
    </table>
</form>
Below is the score.php file ..
<?php
require('../madscore/database/connect.php');
?>
<?php
 database_connect();
$id = $_POST['id']; 
$value = $_POST['value'];  
$query = "UPDATE people SET Score= Score +".$value."WHERE ID ='".$id."'";
var_dump($query);exit;
$result = $connection->query($query);
$row_count = $result->num_rows;
var_dump($row_count);
?>
 
     
     
    