| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
Printing out an element in an array - Problem | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||
|
|||||||
|
Ok, I've done this a thousand times before, but tonight I must not be firing on all cylinders because, I can't figure out why this isn't working:
Doing a print_r of an $HTTP_POST_VARS variable generates the following array: Code:
I then assigned it to smarty with the following code: Code:
I then tried to print the element "test1" in my smarty template with the following code: Code:
It's printing out an "A", so I assume it is trying to tell me that I am referencing the entire array, but for the life of me, I don't know what I am doing wrong. To anyone who answers this, thank you
__________________
Following the signature guidelines |
|||||||
|
#2
|
|||||||
|
|||||||
|
should it be:
$smarty->assign("fm_subs",$HTTP_POST_VARS); ?
__________________
ex x-cart guru |
|||||||
|
#3
|
|||||||
|
|||||||
|
FD,
Worked like a charm. Thanks again for the save. Ever have those days when the answer was right under your nose, but you just didn't look to see it?
__________________
Following the signature guidelines |
|||||||
|
#4
|
|||||||
|
|||||||
|
every day
__________________
ex x-cart guru |
|||||||
![]() |
|
| Thread Tools | Search this Thread |
|
|
|
|
|||
|
X-Cart forums © 2001-2020
|
|||