Step:1 Create Php Page
Step:2 Coding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<form name="form1" method="get" >
<body>
<input name="txt1" type="text" value="" />
<input type="submit" value="Click Here !!!" name="btn1" />
</body>
<?php
if(isset($_GET['btn1']))
{
for($i=0;$i<=$_GET['txt1'];$i++)
{
$no=$_GET['txt1']%10;
echo $no;
$_GET['txt1']=$_GET['txt1']/10;
}
}
?>
</html>
Step:3 Save it on C drive => wamp folder => www folder => name your folder
Step:4 For Run Click on wampmanager
Step:5 Now Select Your Project and Run it



No comments:
Post a Comment