HTTP POST must be encoded and windows.location is encoded

When using JavaScript window.location in your code, be aware, that window.location is encoded using JavaScript escape function. It is not always obvious because characters, that get encoded / decoded using escape() / unescape() is rare in urls. Use the following syntax to get human readable url: unescape(window.location) URL: url/ window.location: unescape(window.location): url/ […]

PHP $_POST returns only one item for SELECT multiple HTML tag

PHP developers decided that values posted from HTML select tag with attribute multiple, somehow overwrites some internal variable data. Basically it goes like this – you have the following form with a select tag: <form action=”/post.php” method=”post”>   <select name=”MyMultiSelect” multiple>     <option>one</option>     <option>two</option>     <option>three</option>     <option>four</option>   </select>   <input type=”submit” value=”send”> </form> and in PHP you try to […]

CSS pseudo-element first-letter using form label element

Today I spent 1/2 hour trying to understand, why my labels do not respect CSS rule first-letter. Here is an example snippet: #myform label:first-letter {text-decoration:underline} <form id=”myform” action=”/test/” method=”post”> <label title=”From”>From:</label> The problem was, that The ‘first-letter’ pseudo-element can only be attached to a block-level element. Reference: w3 – 2.4 The ‘first-letter’ pseudo-element Also, space […]