RE: [PHP] recursive function problem
No, I'm sure I didn't. My news server is incredibly slow, and I am (incredibly?) impatient, so I pushed the send button more than once ... Sorry about that! Sjef -Oorspronkelijk bericht- Van: Paul Scott [mailto:[EMAIL PROTECTED] Verzonden: donderdag 7 december 2006 14:50 Aan: Sjef CC: php-general@lists.php.net Onderwerp: Re: [PHP] recursive function problem On Thu, 2006-12-07 at 13:41 +0100, Sjef wrote: > Hello! > I wrote a recursive function, but when running the function appache stalls, > the error log says: Did you write a recursive function to send this mail to this list perhaps? --Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] complex arrays
Hallo there, I try to put a number of variables in an array as follows: input boxes gather info. This info is language dependent, so the info is put into an array vke with indexes NL and EN. The POST variable gives this array back. Then I want to add a variable to this array, 'gebruikt' (=used) with possible values J or N. The script looks something like so: 'J',$_POST['vke']); foreach ($waarden as $i=>$w) { if (is_array($w)) { foreach($w as $iw=>$ww) { if (is_array($iw)) { //What happening here??? } else { echo stripslashes($iw) . ": " . stripslashes($ww) . ""; } } } else { echo stripslashes($i) . ": " . stripslashes($w) . ""; } } } print ("Test\n"); print ("\n"); print ("\n"); print ("\n"); print ("\n"); print ("\n"); ?> I have problems reading the contents of the arrays. Especially reading the second array seems impossible. After all this I want to add the contents of the array to a Session variable to keep it in furthwer steps (of a wizard). I hope any of you can 'make chocolat' of this ;-)) Thanks!! Sjef p.s. I use php 4. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] array of checkbox values
Hallo, I have a form with a number of checkboxes grouped together. The value of these boxes is stored in an array: $used[]. Now I found that the value of checked boxes (value = 'Y') are stored in the array while non checked boxes are not stored at all. This makes the array incomplete as I want to have all checkbox values in the array. For example: for 4 checkboxes the values are checkbox 1: array index = 0 value = "Y" checkbox 2: array index = 1 value = "Y" checkbox 3: value = "N" : it does not occur in the array checkbox 4: array index = 2 value = "Y" Is there a way to, as it were, complete the array and have all values stored, even the "N" values? So that array index 2 has a value of "N", and array index 3 is "Y". Thxs Sjef -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php