Re: [phplib] how to store array-variable in hidden-field?? From: Douglas Forrest (dougforrest <email protected>)
Date: 07/01/01

store them as a delimited string (each delimiter marks off one array
element) and split'em in your script.

----- Original Message -----
From: Ralf Pfeiffer <rpfeiffer <email protected>>
To: <phplib <email protected>>
Sent: Sunday, July 01, 2001 12:40 PM
Subject: [phplib] how to store array-variable in hidden-field??

> Hello,
>
> the values of the variables $WFL, $Bau and $ObjArt are given by a contact
> form. $ObjArt is an array-variable.
> In a second script the values of these variables are stored in
hidden-fields
> in order to transfer them to the script ''query.php3'.
> Now my problem: how can I transfer the values of the array-variable
$ObjArt
> to the script 'query.php3' by the following form-tag?
> The values of the variable $ObjArt are for example: ObjArt [1] = wohn,
> ObjArt [2] = Bau, ObjArt [3] = Reit.
> Anybody has an idea?
>
> <FORM ACTION="query.php3" METHOD="post">
> <input type="hidden" name="WFL" value="<? echo $WFL;?>">
> <input type="hidden" name="Bau" value="<? echo $Bau;?>">
> <input type="hidden" name="ObjArt [ ]" value="<? $ObjArt;?>">
> </form>
>
> Greetings Ralf
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>