Thanks For your help Fumigator
Resolution for Q 1 hidden field in the start form,
$div_id had already been passed to this form through the url
planted it in a hidden field like you suggested,
$div_id = (isset($_GET['divisions_id'])) ? $_GET['divisions_id'] : false;
Picked it up in the process.php
<input type="hidden" name="div_id" value="<?= $div_id ?>" />
Attached it to,
$div_ref = $_POST['$div_id']; }
to my SELECT and UPDATE statements.
WHERE team_name ='$team_a'AND divisions_id =$div_id";
Works like a dream.
Resolution for Q 2 "if" statements were causing my grief:
I added the brackets like you suggested but this did not solve the problem except for a good lesson in formatting my code properly thank you,
while adding the brackets to the "ifs" I noted,
I did not need Ifs here so I changed it to,
if ($goals_for = $goals_for + $goal_b )
if ($goals_against = $goals_against + $goal_a )
$goals_for = $goals_for + $goal_a;
$goals_against = $goals_against + $goal_b;
Thanks again Fumigator
Next Question (you thought I was finished ha )
I want to add an other dropdown list to the start.php form
this will select round 1,round 2,simi final and so on,
I have game_id and game_name.
what I want to do is view the game_name in the listbox (ie Simi Final) but send the game_id (numeric value) to the DB table.
Any Ideas for this one, heres the code for the list box
$query = 'SELECT game_id, game_name from game ';
$result = mysql_query($query) or die(mysql_error());
echo "<SELECT NAME='game_id'>";
while ($row = mysql_fetch_array($result))
echo "<OPTION VALUE=\"".$row["game_name"]."\">".