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 …

Edit any website / webpage with simple JavaScript

Copy the following one line JavaScript into address bar of browser to enable ‘edit mode’. javascript:document.body.contentEditable=’true’; document.designMode=’on’; void 0 Now you can add or delete any text, move images and objects, and more. Have a fun! Tested on Internet Explorer 8 and 6, Firefox 3.5.2, Opera 10, Google Chrome 2.0.172.39 and Apple Safari 4.0.3.