Re: Sessions and CHECKBOXES :(
| From: | Yasuo Ohgaki | Date: | Mon, 19 Mar 2001 06:37:53 +0000 |
| Subject: | Re: Sessions and CHECKBOXES :( | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-44491@lists.php.net to get a copy of this message | ||
Although, you ask not to refer to PHP manual, there is a function you probably
would like to learn.
(I guess you haven't read about array functions, right?)
http://www.php.net/manual/en/function.array-merge.php
This should be what you are looking for.
(Don't over write, but merge arrays. I guess this is what you need)
Take your time to read array functions, you might find other functions that is
useful.
Regards,
--
Yasuo Ohgaki
----- Original Message -----
From: ""karakedi"" <eyilmaz76@ultratv.net>
Newsgroups: php.general
Sent: Saturday, March 17, 2001 10:07 AM
Subject: [PHP] Sessions and CHECKBOXES :(
> i ve 20 film names stored at database, and i want to show them in
> alphebetical order. And i want to show 10 of them at each page. Nothing is
> wrong here. At the end of each film name there is a CHECKBOX, here is the
> code:
>
> $count = 0;
> while ($row = mysql_fetch_array($result)){
>
> echo "<tr>";
>
> echo "<td valign=middle align=left>" ; // getting film names here
> echo $row['film'] ;
> echo "</td>" ;
>
>
> $sepet = $row['tur'] ; // putting checkboxes here
> $sepet2 = $row['film'];
> $sepetsonuc = $sepet. " " .$sepet2 ;
> echo "<input type=checkbox name=\"siparis[]\"
> value=\"$sepetsonuc\">" ;
>
> echo "</td></tr>" ;
> $count++;
> }
>
>
> its good till here. everything is working... now since there are two pages i
> want to register checkbox variables which are CHECKED with
> "session_register "so that i can use them at the second page. without that
> my code simply cant remember the checked ones at the previous pages.
>
> Can someone help me to register these checkbox values into sessions ?
> PLS dont refer me to php.net manual/sessions :(
>
> i spent my last two days working on this so really need help :( any help is
> HIGHLY APPRECIATED!!!
> thx in adv.
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>