[nycphp-talk] passing variables to the next php page - HELP
Daniela Gutierrez
daniela at ula.ve
Thu Aug 10 15:54:13 EDT 2006
I'm not sure but I think you're trying to use variable variables, maybe
you can read
http://us2.php.net/manual/en/language.variables.variable.php. I've had
to do something like that a while ago and that was helpful, I hope it's
helpful for you too ;)
Néstor wrote:
> People,
>
> In one PHP page I have an input field name bid_sub_desc0,
> bid)sub_desc1, etc...
> Whe I am in my next PHP page I am try to move the different values to
> single variable
> to later added it a query. bid sub tell me how many bids where entered.
> for($i=0; $i < count($bid_sub); $i++)
> {
> $query .= ",;" . $_POST['bid_sub_desc$i'] . ":";
> }
>
> When I print print "QUERY =$query|<br>\n";
> I get nothing :
> QUERY=,':','::')|
>
> The varable inside the $_POST is no getting refered to the way I want
> it to.
> I was expecting the bid_sub_desc$1 to change to:
> bid_sub_desc0
> bid_sub_desc1
> etc
> depending on the $bid_sub
>
> Any ideas?
>
> thnaks,
>
> Néstor :-)
>
>------------------------------------------------------------------------
>
>_______________________________________________
>New York PHP Community Talk Mailing List
>http://lists.nyphp.org/mailman/listinfo/talk
>
>NYPHPCon 2006 Presentations Online
>http://www.nyphpcon.com
>
>Show Your Participation in New York PHP
>http://www.nyphp.org/show_participation.php
>
>
More information about the talk
mailing list