Hi all,

I've got a php page that looks like so:

<?php
if(!(empty($assigned)))
{
echo count($assigned);
}
?>
<body>
<form name="form" action="<?php echo $HTTP_SERVER_VARS['PHP_SELF']?>" method="post" size=7>
<select name="assigned[]" size="7" multiple>
<option value="1" SELECTED>The Phantom Menace</option>
<option value="2">Attack of the Clones</option>
<option value="3">TBD</option>
</select>
<input type="submit" name="submit" id="submit">
</form>
<body>

yet I cannot get anything from the assigned array. I've tried everything, sending to a new page but the $assigned variable is still never populated and nor can I get a count value from it.

what am I doing wrong here?

thanks

Wayne

    Check the variable register_globals in file php.ini .
    if it is set to Off set it on.
    and then restart Apache server.
    Your code is just fine.

      Ok,

      thanks for the reply, what do I do though if I want it set to off?

      thanks

        Write a Reply...