[PHP] selectbox solved
Hi all, I no longer need you're help. It's solved in the attachment. Just add an unique id to the checkbox and query the array if it contains that value and you're done. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 06, 2001 4:34 PM -- Met vriendelijke groet/with kind regards,Tijmen Hennink[EMAIL PROTECTED]Medi@connectDit e-mail bericht is uitsluitend bestemd voor de geadresseerde(n).Gebruik van deze informatie door andere dan de geadresseerdeis verboden. Het is evenmin toegestaan om deze informatie openbaar te maken,te vermenigvuldigen, te verspreiden of te verstrekken aan derden. Aan ditbericht kunnen geen rechten worden ontleend.Indien u dit mailtje heeft ontvangen terwijl het niet aan u gericht was, reply richting mij en verwijder vervolgens de email en uitgeprinte versies van dit mailtje.This e-mail is intended for the use of the addressee(s) only and maycontain privileged, confidential, or proprietary information that is exemptfrom disclosure under law. If you have received this message in error,please inform me promptly by reply e-mail, then delete the e-mail andany printed copy. Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] checkboxes part II
Hi all, maybe this example will show you what is the problem. Try to unselect some of the checkboxes and you will see that there is some magic in here. I want to have per id if the selectbox is selected or not. The test.html will be generated from mysql when test.php is working fine. I'm getting mad of this... Met vriendelijke groet/with kind regards, Tijmen Hennink[EMAIL PROTECTED]Medi@connect Dit e-mail bericht is uitsluitend bestemd voor de geadresseerde(n).Gebruik van deze informatie door andere dan de geadresseerdeis verboden.Het is evenmin toegestaan om deze informatie openbaar te maken,te vermenigvuldigen, te verspreiden of te verstrekken aan derden. Aan ditbericht kunnen geen rechten worden ontleend.Indien u dit mailtje heeft ontvangen terwijl het niet aan u gericht was,reply richting mij en verwijder vervolgens de email en uitgeprinte versiesvan dit mailtje. This e-mail is intended for the use of the addressee(s) only and maycontain privileged, confidential, or proprietary information that is exemptfrom disclosure under law. If you have received this message in error,please inform me promptly by reply e-mail, then delete the e-mail andany printed copy. Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: array + checkbox
Very weird but it works. But it doesn't see any changes in the form. Maybe the PHP is just fine but the HTML contains some shit. Here is the part that I'm using to generate the form. if ($aanwezig == "TRUE") echo(" \n"); else echo(" \n"); } It seems that although I can unclick a checkbox it still is selected in the HTML, strange isn't it? Well, how do I generate HTML that PHP can use to determine whether a selectbox is still checked or that is it no longer checked at all. Tijmen - Original Message - From: "James Holloway" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 06, 2001 12:04 PM Subject: Re: array + checkbox > Hi there Tijmen, > > Firstly, change the input name from this: > voorraad > to this: > voorraad[] > > then do something like: > > > > echo "Checked values are as follows:"; > > for ($i = 0; $i < sizeof($voorraad); $i++) { > if (!empty($voorraad[$i])) { > echo $voorraad[$i]; > } > } > > ?> > > James > > "Tijmen Hennink" <[EMAIL PROTECTED]> wrote in message > 001601c11e52$d328e9f0$80c2a8c0@PATRIJS2000">news:001601c11e52$d328e9f0$80c2a8c0@PATRIJS2000... > Hi All, > > I've the following weird problem. > I have a form which contains an array with values of some checkboxes. > This is the HTML-part: > > if checked or > > > Now I want to check which of the checkboxes are really checked. > So I've got the following PHP code: > if(count($voorraad[1])>0) { > echo "VOORRAAD NEE"; > } > else { > echo "VOORRAAD JA"; > } > > I've tried it with isset($voorraad[1]), count, is_null($voorraad[1]) but all > the functions doesn't work. > Does anyone see what I'm doing wrong?? > > Met vriendelijke groet/with kind regards, > > Tijmen Hennink > -- -- > [EMAIL PROTECTED] > Medi@connect > -- -- > > Dit e-mail bericht is uitsluitend bestemd voor de geadresseerde(n). > Gebruik van deze informatie door andere dan de geadresseerde > is verboden. > Het is evenmin toegestaan om deze informatie openbaar te maken, > te vermenigvuldigen, te verspreiden of te verstrekken aan derden. Aan dit > bericht kunnen geen rechten worden ontleend. > Indien u dit mailtje heeft ontvangen terwijl het niet aan u gericht was, > reply richting mij en verwijder vervolgens de email en uitgeprinte versies > van dit mailtje. > > > This e-mail is intended for the use of the addressee(s) only and may > contain privileged, confidential, or proprietary information that is exempt > from disclosure under law. If you have received this message in error, > please inform me promptly by reply e-mail, then delete the e-mail and > any printed copy. > > Thank you. > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] array + checkbox
Some extra debuginfo. When I'm submitting a page where the checkbox is not set in the beginning and in same page an checkbox that is initially set to checked I can see that the first is not set and the second is set. But this is the strange part, if I changed the 2 checkboxes I still get the same output. - Original Message - From: "Tijmen Hennink" <[EMAIL PROTECTED]> To: "Jason Murray" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, August 06, 2001 10:40 AM Subject: Re: [PHP] array + checkbox > Sorry, > > I've copied some old code. > It was already > > - Original Message - > From: "Jason Murray" <[EMAIL PROTECTED]> > To: "'Tijmen Hennink'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Monday, August 06, 2001 10:37 AM > Subject: RE: [PHP] array + checkbox > > > > > I've the following weird problem. > > > I have a form which contains an array with values of some checkboxes. > > > This is the HTML-part: > > > > > > if checked or > > > > > > > Try maybe...? > > > > Jason > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] array + checkbox
Sorry, I've copied some old code. It was already - Original Message - From: "Jason Murray" <[EMAIL PROTECTED]> To: "'Tijmen Hennink'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, August 06, 2001 10:37 AM Subject: RE: [PHP] array + checkbox > > I've the following weird problem. > > I have a form which contains an array with values of some checkboxes. > > This is the HTML-part: > > > > if checked or > > > > Try maybe...? > > Jason > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] array + checkbox
Hi All, I've the following weird problem. I have a form which contains an array with values of some checkboxes. This is the HTML-part: if checked or Now I want to check which of the checkboxes are really checked. So I've got the following PHP code: if(count($voorraad[1])>0) { echo "VOORRAAD NEE"; } else { echo "VOORRAAD JA"; } I've tried it with isset($voorraad[1]), count, is_null($voorraad[1]) but all the functions doesn't work. Does anyone see what I'm doing wrong?? Met vriendelijke groet/with kind regards, Tijmen Hennink [EMAIL PROTECTED] Medi@connect Dit e-mail bericht is uitsluitend bestemd voor de geadresseerde(n). Gebruik van deze informatie door andere dan de geadresseerde is verboden. Het is evenmin toegestaan om deze informatie openbaar te maken, te vermenigvuldigen, te verspreiden of te verstrekken aan derden. Aan dit bericht kunnen geen rechten worden ontleend. Indien u dit mailtje heeft ontvangen terwijl het niet aan u gericht was, reply richting mij en verwijder vervolgens de email en uitgeprinte versies van dit mailtje. This e-mail is intended for the use of the addressee(s) only and may contain privileged, confidential, or proprietary information that is exempt from disclosure under law. If you have received this message in error, please inform me promptly by reply e-mail, then delete the e-mail and any printed copy. Thank you.
[PHP] Fatal error: Internal Zend error
Hi all, at this moment I'm debugging a site for a customer. At some weird moments we get this error Fatal error: Internal Zend error - Missing class information for in classes/sql.class on line 4 The file itself is a class which we use for connect to the mysql. It get's some variables for the current session. After touching this file , the error is gone. The strange thing about this is that after some time the error reappears. It would be reasonable if the error accours after the 2'nd reload. But that doesn't happen at all. Is there some trick to tell Zend not to cache this file?? Met vriendelijke groet/with kind regards, Tijmen Hennink [EMAIL PROTECTED] Medi@connect Dit e-mail bericht is uitsluitend bestemd voor de geadresserde(n). Gebruik van deze informatie door andere dan de geadresseerde is verboden. Het is evenmin toegestaan om deze informatie openbaar te maken, te vermenigvuldigen, te verspreiden of te verstrekken aan derden. Aan dit bericht kunnen geen rechten worden ontleend. Indien u dit mailtje heeft ontvangen terwijl het niet aan u gericht was, reply richting mij en verwijder vervolgens de email en uitgeprinte versies van dit mailtje. This e-mail is intended for the use of the addressee(s) only and may contain privileged, confidential, or proprietary information that is exempt from disclosure under law. If you have received this message in error, please inform me promptly by reply e-mail, then delete the e-mail and any printed copy. Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]