[liphp] need help

Venkatagiriyappa, Veena [email protected]
Tue, 17 Jun 2003 13:24:27 -0400


Hi,
I have a HTML form with an input type radio button.


Code:

<form action="proposal_cancelled.php" name="cancelproposal" method="POST">
            <?
                for($i=0;$i<count($proposals);$i++)
                {
            ?>
                    <tr>
                        <td class="text"><b><input type="radio"
name="cancelproposalid" value="<?$proposals[$i]?>">  <?echo
$proposals[$i]?>: </b><?echo get_proposal_title($proposals[$i])?>
                    </tr>
                    <tr height="10"></tr>

                <?}
                ?>
                <tr>
                    <td align="center" valign="middle"><input type="submit"
name="submit" value="Submit">   
                    <input type="reset" name="reset" value="Reset"></td>
                </tr>

        </form>



In proposal_cacelled.php

PHP:
<?php
echo "pid is" .$_POST["cancelproposalid"]?>

?>

gives no value. What am I doing wrong here. how do I send the proposalid to
another page in case of radio button? Does the $_POST act different for
radio buttons which has dynamically populated data?(like in this case
proposalid)