RE: [SMARTY] request arrays
| From: | Richard Thomas | Date: | Sat, 19 Apr 2003 19:16:16 +0000 |
| Subject: | RE: [SMARTY] request arrays | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9339@lists.php.net to get a copy of this message | ||
That doesnt work when $smarty.post.contact_first_name is and array..
I need to be able to access
$smarty.post.qty[$rfq[rfqlist].partid]]
On Sat, 2003-04-19 at 14:06, Scott James wrote:
> We use the following:
>
> <input type=text name="contact_first_name"
> value="{$FRM.contact.first_name|default:"$smarty.post.contact_first_name"}"
> ...
>
> we set the array $FRM in the PHP script with the values to display.
>
> On error, we display the SAME form, with an added ERROR message
> shown in red describing the error. But the original values are
> still retained in the form.
>
> HTH,
> Scott
>
>
> > My smarty code, I need to figure a way to fill the value of a form if I
> > error and keep that form in place.. I have tried a couple diffrent
> > things and they all error
> >
> > Basically I have a $smarty.request.qty that is and array, And I have the
> > key for that array in the value $rfq[rfqlist].partid
> >
> > <input type=text name=qty[{$rfq[rfqlist].partid}]
> > value="{$smarty.request.qty.$rfq[rfqlist].partid]}">
> > --
> > Richard Thomas <cyberlot@cyberlot.net>
> >
--
Richard Thomas <cyberlot@cyberlot.net>