list of state


<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
<html xmlns=”http://www.w3.org/1999/xhtml”&gt;
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>List of state in india</title>
</head>

<body>
<h1>List of state in india</h1>
<select name=”ddlLocalityState” id=”ddlLocalityState” style=”width:250px;”>
<option selected=”selected” value=”0″>[Select A State]</option>
<option value=”ACP”>Arunachal Pradesh</option>
<option value=”ANI”>Andaman &amp; Nicobar Islands</option>

<option value=”AP”>Andra Pradesh</option>
<option value=”ASM”>Assam</option>
<option value=”BHR”>Bihar</option>
<option value=”CHG”>Chhattisgarh</option>
<option value=”CNG”>Chandigarh</option>
<option value=”DEL/NCR”>Delhi/NCR</option>

<option value=”DLH”>Delhi</option>
<option value=”DND”>Daman &amp; Diu</option>
<option value=”DNH”>Dadra and Nagar Haveli</option>
<option value=”GOA”>GOA</option>
<option value=”GUJ”>Gujrat</option>

<option value=”HP”>Himachal Pradesh</option>
<option value=”HRY”>Haryana</option>
<option value=”JHAR”>Jharkhand</option>
<option value=”JK”>Jammu &amp; Kashmir</option>
<option value=”KRL”>Kerala</option>

<option value=”KRT”>Karnataka</option>
<option value=”LKD”>Lakshwadeep</option>
<option value=”MGL”>Meghalaya</option>
<option value=”MHR”>Maharashtra</option>
<option value=”MNP”>Manipur</option>
<option value=”MP”>Madhya Pradesh</option>

<option value=”MZR”>Mizoram</option>
<option value=”NGL”>Nagaland</option>
<option value=”ORS”>Odisha</option>
<option value=”PDC”>Pondicherry</option>
<option value=”PNJ”>Punjab</option>
<option value=”RAJ”>Rajasthan</option>

<option value=”SIK”>Sikkim</option>
<option value=”TMN”>Tamilnadu</option>
<option value=”TRP”>Tripura</option>
<option value=”UP”>Uttar Pradesh</option>
<option value=”UTC”>Uttaranchal</option>
<option value=”WB”>West Bengal</option>

</select>
</body>
</html>

Advertisements

Arrays and Hashes in Ruby


Array:

Arrays are ordered, integer-indexed collections of any object. Array indexing starts at 0, as in C or Java. A negative index is assumed to be relative to the end of the array—that is, an index of -1 indicates the last element of the array, -2 is the next to last element in the array, and so on.

Hash:

A Hash is a collection of key-value pairs. It is similar to an Array, except that indexing is done via arbitrary keys of any object type, not an integer index. Hashes enumerate their values in the order that the corresponding keys were inserted.