[liphp] need help
Tim Sailer
[email protected]
Tue, 17 Jun 2003 13:34:28 -0400
Just reading it quickly, it looks fine. I would resort to viewing the source
to make sure the HTML actually is the way you expect, ie:$proposals[] is
actually populated...
Tim
On Tue, Jun 17, 2003 at 01:24:27PM -0400, Venkatagiriyappa, Veena wrote:
> 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)
>
> _______________________________________________
> Liphp mailing list
> [email protected]
> https://www.liphp.org/mailman/listinfo/liphp
--
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>> Tim Sailer >< Coastal Internet, Inc. <<
>> Network and Systems Operations >< PO Box 726 <<
>> http://www.buoy.com >< Mastic, NY 11955 <<
>> [email protected] ><<<
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<