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 [...]
Actually, I had two forms on the same page, one with the GET method (let’s call it get_form), the other with the POST method (we’ll call it post_form). When I pressed the submit button of get_form it seemed that the post_form got submitted. In fact, all the variables in get_form and post_form were passed with [...]
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, [...]
Full error message: Warning: mail(): SMTP server response: 451 See http://pobox.com/~djb/docs/smtplf.html. in path_to_php_file on line # This is an error message that I got lots of times and it was always the same problem. So I decided to write here the solution for the next time I encounter it and I thought it might also [...]
