Problem: Using specific characters from European languages like Romanian, Bulgarian, Czech and so on (usually the ones without support in ISO 8859-1) rises errors when displaying the content in browsers turning special characters in unrecognizable ones. My fix for this problem is using UTF-8 character set encoding for every page of the website and the [...]
I could not receive a failure notice when sending email to an email address that does not exist ($to_address), using this code: $subject = “Email subject”; $message = “line1\r\nline2\r\nline3″; $headers = “MIME-Version: 1.0\r\n”; $headers .= “Content-type: text/plain; charset=iso-8859-1\r\n”; $headers .= “To: <$to_email>\r\n”; $headers .= “From: Me <$my_email_address>\r\n”; $headers .= “Return-Path: <$my_return_email_address>r\n”; mail($to_email, $subject, $message, $headers); [...]
My solution of checking/unchecking a group of HTML checkboxes using Javascript implies using an array of checkboxes, which means naming all the inputs of type ‘checkbox’ like array_name[]. Example: <form name=”cb_form”> <input type=”checkbox” name=”cb[]” value=”0″ />Zero <input type=”checkbox” name=”cb[]” value=”1″ />One <input type=”checkbox” name=”cb[]” value=”2″ />Two <input type=”checkbox” name=”cb[]” value=”3″ />Three </form> In this example, [...]
