Blog Archives

Variable Variables in PHP : Power of PHP

Power of PHP extended to use a variable variables. Example: Sometimes it is convenient to be able to have variable variable names. That is, a variable name which can be set and used dynamically. A normal variable is set with

Tagged with: , , , , , ,
Posted in PHP, Programming

ICANN to vote on new Internet domain names

The Internet Corporation for Assigned Names and Numbers is getting ready to vote later this week to open up the Internet naming convention to allow more options. On Thursday at its meeting in Paris, ICANN, the not-for-profit organization charged with

Tagged with: , ,
Posted in domains

How to validate name field using Javascript

<script language=”javascript” type=”text/javascript”> function isValidName(id) {   Element=document.getElementById(id); if (Element.value==””||Element.value== 0) { alert(“Please Enter your Name.”); Element.focus(); Element.value=””; return false; } var rg = new RegExp(/^[A-Za-z\s'.]+$/gi); name=Element.value; if(String(rg.test(name))==’false’) { Element.focus(); Element.value=””; alert(“Please Enter A valid Name”); return false; } } </script>

Tagged with: , , , ,
Posted in javascript, Programming