RE: [PHP] html_quickform - array question

2003-03-26 Thread John W. Holmes
> echo "The month: $thedate['m']"; echo "The month: {$thedate['m']}"; or echo "The month: $thedate[m]"; ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] html_quickform - array question

2003-03-26 Thread Charles Kline
Great. Thanks. - Charles On Wednesday, March 26, 2003, at 09:48 PM, Leif K-Brooks wrote: Yes, but you can't put put the single quoted array key directly in the double-quotes string, try: $thedate = $lr_form->getSubmitValue('lr_pub_date'); echo "The month: {$thedate['m']}"; Charles Kline wrot

Re: [PHP] html_quickform - array question

2003-03-26 Thread Leif K-Brooks
Yes, but you can't put put the single quoted array key directly in the double-quotes string, try: $thedate = $lr_form->getSubmitValue('lr_pub_date'); echo "The month: {$thedate['m']}"; Charles Kline wrote: Okay. I think I understand. So I do something like this: $thedate = $lr_form->getSubmit

Re: [PHP] html_quickform - array question

2003-03-26 Thread Charles Kline
Okay. I think I understand. So I do something like this: $thedate = $lr_form->getSubmitValue('lr_pub_date'); echo "The month: $thedate['m']"; Is that what you meant? - Charles On Wednesday, March 26, 2003, at 09:31 PM, Leif K-Brooks wrote: Are you trying to print/echo it? That converts it to

Re: [PHP] html_quickform - array question

2003-03-26 Thread Leif K-Brooks
Are you trying to print/echo it? That converts it to a string first. Either print_r it, var_dump it, or do something else with it. Charles Kline wrote: hi all, using html_quickform (pear) and it has a date type that passes the date info like this: array(24) { ["lr_pub_date"]=> array(3) {

[PHP] html_quickform - array question

2003-03-26 Thread Charles Kline
hi all, using html_quickform (pear) and it has a date type that passes the date info like this: array(24) { ["lr_pub_date"]=> array(3) { ["m"]=> string(1) "3" ["d"]=> string(2) "12" ["Y"]=> string(4) "2003" } I am used to getting this data like: $form->getSubmitVal