List Info

Thread: print parsing confusion




print parsing confusion
user name
2006-04-13 16:08:52
Oops. Thanks a lot.


--- Andy Dirnberger <dirndirnonline.com> wrote:

> You need to close the input tag.
> 
> -----Original Message-----
> From: talk-bounceslists.nyphp.org
> [mailto:talk-bounceslists.nyphp.org] On
> Behalf Of Linux Rocks
> Sent: Thursday, April 13, 2006 11:59 AM
> To: NY PHP
> Subject: [nyphp-talk] print parsing confusion
> 
> Hello all:
> 
> I am having a problem trying to get a text field get
> its name in a while loop like this expense_cat1,
> expense_cat2 ... etc. here's a snip of the code:
> 
> while( $row = mysql_fetch_array( $category ) )
> {
>   echo( "<tr><td>" .
$row['expenses_cat_desc'] . 
>        "</td><td><input type=text
name=expense_cat"
> .
> $row['expenses_cat_number'] .
("</td></tr>");
> 
> }
> 
> I pass this to another page and try to print it
> using
> $_POST['expense_cat1'] and is giving me an empty
> string. 
> 
> Now, I check phpinfo() and the variable name gets
> created as:
> 
> $_POST['expense_cat1</td>']
> 
> I don't know how I can get around this. What other
> function can I use to get this working correctly. 
> 
> 
> Thank you in advanced for your help.
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://l
ists.nyphp.org/mailman/listinfo/talk
> New York PHP Conference and Expo 2006
> http://www.nyphpcon.com
> Show Your Participation in New York PHP
> http://ww
w.nyphp.org/show_participation.php
> 
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://l
ists.nyphp.org/mailman/listinfo/talk
> New York PHP Conference and Expo 2006
> http://www.nyphpcon.com
> Show Your Participation in New York PHP
> http://ww
w.nyphp.org/show_participation.php
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection
around 
http://mail.yahoo.com 
_______________________________________________
New York PHP Community Talk Mailing List
http://l
ists.nyphp.org/mailman/listinfo/talk
New York PHP Conference and Expo 2006
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://ww
w.nyphp.org/show_participation.php
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )