Alright, if I change the code to:
$num = $HTTP_POST_VARS["questnum"];
$answers = $HTTP_POST_VARS["answers"];
$val = $HTTP_POST_VARS["val"];
$val_temp = explode("|",$val);
$answers += $val_temp[0];
if ($num == 0)
{$answernum = array($num => $val_temp[1]);}
else
{$answernum[] = $val_temp[1];}
I get an error message that says
"Fatal error: [] operator not supported for strings"
now, both $num, and $val_temp should be integers as far as I know. If need be is there a function that we can convert a string to integer?
If I change the code to:
{$answernum[$num] = $val_temp[1];}
to force it to go up one, it does the same problem as before, only grabbint the first character of the $val_temp and not both. Im baffled.
Thanks for all of your help so far.