auto refresh page


header(‘Refresh: 60’);

header=function
60=time in second

example

<?php
header(‘Refresh: 60’);
?>
<!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>Untitled Document</title>
</head>

<body>
hi
</body>
</html>

date explode php


<?php
echo $fetch_date=date(“d/m/Y”);
?>
<!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>Explode date</title>
</head>

<body>
<h1>Explode date are as follow</h1>
<?php
print_r( $new_date = explode(“/”,$fetch_date));
?>
<hr>
<?php
echo “DAY—-“.  $day=strtoupper(“$new_date[0]”).”</br>”;
echo  “MONTH—-“.$month= strtoupper(“$new_date[1]”).”</br>”;
echo   “YEAR—-“.$year= strtoupper(“$new_date[2]”).”</br>”;
?>
</body>
</html>

concatenation in php


<?php
header(‘Refresh: 60′);
$first_name=’pravin’;
$last_name=’mishra’;
?>
<!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>Untitled Document</title>
</head>

<body>
<h1>My Full Name</h1>
<?php
echo $table_name=$first_name.’ kumar ‘.$last_name;
?>
</body>
</html>

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>

catch multiple checkbox input


So in your catching script you must process the array with name $_POST[‘checkbox’]
Here is the code:
[php]<body>
<form action=”checkbox.php” method=”post”>
<input type=”checkbox” name=”checkbox[]” value=”a”>
<input type=”checkbox” name=”checkbox[]” value=”b”>
<input type=”checkbox” name=”checkbox[]” value=”c”>
<input type=”checkbox” name=”checkbox[]” value=”d”>
<br>
<br>