RE: [PHP] Checkbox
Just be wary that not all browsers will honor the readonly flag (Netscape 4 for example). In looking at this I found a tutorial at http://www.estek.net/estek/idocs/forms/_INPUT_DISABLED.html . I tested it in IE 6, NS 7.02 and Opera 7. None of these browsers prevented me from checking and unchecking the box. Only the DISABLED flag does. Readonly apparently prevents the user from altering the value of the input field. -Original Message- From: Tim Burden [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 11:25 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Checkbox Just using the readonly flag in the input tag is the easiest method, I think. - Original Message - From: Reuben D. Budiardja [EMAIL PROTECTED] Newsgroups: php.general To: CPT John W. Holmes [EMAIL PROTECTED]; shaun [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 2:26 PM Subject: Re: [PHP] Checkbox On Wednesday 26 March 2003 02:11 pm, CPT John W. Holmes wrote: On Wednesday 26 March 2003 01:43 pm, CPT John W. Holmes wrote: is it possible to have a checkbox that if it is specified to be checked when the page is being formulated then it cannot be unchecked? No. No... No. If you already know you don't want it to be unchecked, then don't show a checkbox. That's why we have PHP, so you can create your page DYNAMICALLY and not show bits and pieces when you don't need to. Although that is theoretically correct, there can be some reason why one would want to display a checkbox anyway. Sometimes it can be clearer for the user to see the GUI, asthetic reason, etc, etc. True. In that case, though, I would just show an image of a checked check box. The end result will be the same to the user, they will just think it's a checkbox they cannot uncheck. But isn't it so much easier to type in that one line HTML + javascript than trying to get an image of a checked check box.. unless you have that handy, you'd have to eg. take a snapshot, or draw something, then save the file as an image file...hmm... and as you said, the effect will be the same to the user anyway RDB -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] how to know if email sent
By default you'll never know if the email you sent gets through. You could set up a bounced email tracking system. There is an Errors-To header in the email messages that you can have send to a specially set up account on your system. Then have a cron job process that looking for bounced emails you sent. You do have to be able to distinguish real bounces vs. informative warnings that delivery has been delayed. You may also need to track the Message Ids if you need to determine if a specific message that was sent bounces, otherwise you could harvest that special mailbox for known bad email addresses. We're building a similar system for our service, I'm trying to get that team to keep it generic enough to be able to be a standalone product. David -Original Message- From: Alexander Jäger [mailto:[EMAIL PROTECTED]] Sent: Friday, October 19, 2001 8:09 AM To: [EMAIL PROTECTED] Subject: [PHP] how to know if email sent hi everybody i'm making an automatic booking system in php. for the hotelier it's also possible to calculte offers and send them to his gasts. we send the email with @mail and although we put in a right-formated (with @ in it etc.) but wrong email adress the function results true. so we tried to get an error-email from the server that send the mails but no success. does anybody has a solution for our problem thanx for every little help Alexander Jäger -- 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] Can I have If...Else inside a For Loop???
Could it be the semi colon at the end of the 'if' line, at '... $nChar = 45); { ...' ? Looks like the if statement ends there, the ' { print OK.; } ' is a block on it's own and the 'else' is now out of context. -Original Message- From: Brad Melendy [mailto:[EMAIL PROTECTED]] Sent: Friday, October 19, 2001 8:03 PM To: [EMAIL PROTECTED] Subject: [PHP] Can I have If...Else inside a For Loop??? Hi All, I'm stumped. I've got the following code: ?php if(isSet($domain)) { for ( $counter=0; $counter = strlen($domain); $counter++ ) { $nChar = ord(strtolower(substr($domain, $counter, 1))); if (($nChar 47 And $nChar 58) or ($nChar 96 And $nChar 123) or $nChar = 45); { print OK.; } else { print Not OK.; } } } ? What's got me beat is that this code fails on the ELSE statement. Now, if I comment out the ELSE statement, the code proceeds, I just don't get the results I want when the coditions in IF statement are false. Anyone know what I'm doing wrong? It's as if you can't nest an IF/Else under a FOR, but you can use just an IF. Thanks very much in advance. Brad -- 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]