web developer web developer web developer web developer web developer


Little things to remember

In accessing radio button using javascript, it must be searched first on which boxed is checked to get the value.

 
/* Language : Ecma a.k.a. Javascript */
 
function get_radio_value(){
var oRadio=document.form_name.radio_name;
    for (i=0;i<oRadio.length;i++) {
     if (oRadio[i].checked) {
	  radio_value = oRadio[i].value;
     }
    }
}
 

MySQL versions 4.0 used a different timestamps rather than 4.1 and above.

Example:

Version 4.0 and below - 20080331152726
Version 4.1 and above - 2008-03-31 15:27:26

In order to protect files from viewing or downloading by using .htaccess

 
<Files *.ext>
Order allow,deny
Deny from all
</Files>
 

sometimes little things count much. ;)

No comments yet. Be the first.

Leave a reply