bohat hi umda mazza agya
bohat hi umda mazza agya
Shakeel Bro mere koshesh ka aik Kamzoor sa result aapky samny hai pls zror is par comments deen jo khaamyaan hai unko bhe point out kareen taky aienda koshesh karoo k os sy ejtenaab karoon
HTML Code:<html> <head> <title>PHP Class 7 - Workshop ( I T M a h a l . c o . c c ) </title> </head> <body> <?php if($_POST['post']){ $num = $_POST['OddEven']; $result = $num%2; switch ($result){ case 0: echo "You have entered an <h2>EVEN</h2> number.".$num. "<br / >"; break; case 1: echo "You entered an <h2>ODD</h2> number.". $num ."<br / >"; break; default: echo "Sorry you've enter correct number. . ."; } } if($_POST['tables']){ $num = $_POST['table']; if($num <= 2 || $num >=20){ echo "<h1>Error:</h1><b>Please enter a number that is greater than <i>2</i> and/or is less than <i>20</i>.</b><br /><br /><br />"; }else{ echo "<center><h1>Table of " . $num . "</h1></center>"; for ($i = 1; $i<=100; $i++){ echo ("<center>".$num . " x " .$i . " = ".$num*$i."<br /></center>"); } } } ?> <b>__________________________________________________________________</b> <form action="php-class7.php" method='POST'> <b>Enter number to know either it is Even or Odd:</b> <input type="text" name=OddEven value ="Type a number here" /><BR /><BR /> <input type="hidden" name ="post" value ="true" /> <center><input type="reset" value ="Reset" /> <input type="Submit" value ="Is it EVEN or ODD ?" /></center> </form> <b>__________________________________________________________________</b> <form action="php-class7.php" method='POST'> <b>Enter number between 2 & 20 to show its table:</b> <input type="text" name='table' value ="Type a number here" /><BR /><BR /> <input type="hidden" name ="tables" value ="true" /> <center><input type="reset" value ="Reset" /> <input type="Submit" value ="Show Tables" /></center> </form> <b>__________________________________________________________________</b> </body> </html>
Death is not the biggest Loss in life.
The biggest loss is when relationships die among us when we are alive!! (Shakespeare)
loverahiplus Excellent.... , Great Work.. main app kay kaam say buhat khoush hoa hoon. or app main aik acha developer dikh raha hoon. so keep it up..
1: hamisha apany code main comments bhi dain, jis say bad main apko ya dosray sathi ko code read karnay main masla nahi ho ga.
2: her line ko alag line per lekhain, jasay kay agar app is tarah lekthay to ziada behtar hota:
khair ya koee itna bara masla nahi hay or waqt kay sath sath app ko khudh hi samaj a jay ga, wo kia kehtay hain:PHP Code:
switch ($result) {
// if the number is even
case 0:
echo "You have entered an <h2>EVEN</h2> number.".$num. "<br / >";
break;
// if the number is odd
case 1:
echo "You entered an <h2>ODD</h2> number.". $num ."<br / >";
break;
default:
echo "Sorry you've enter correct number. . .";
}
khuda jub hosan dita hay nazakat aa hi jati hay.
baqi app ke logic zabardast hay.
Last edited by shakeel; 19th January 2009 at 03:26 PM.
In rain all birds occupy shelter, but Eagle is the only 1 that avoids rain by flying above the clouds.
Shakeel bhaie aapny mere etne tareef k hai aapke barre karam nawaze mai tu s laieq nahi tha agar is qabel howa hoon tu aik achy teacher k waja say joky he say kuch seekha....dosre lines ko tu mai nay s lie akatty lekha k jaga k bachat ho aur scroll kie bagheer nazar asaky aur baat rahe comments k tu insha Allah next time ye yaad raheega...
Aik request hai aap say har lesson k end par workshop/homework dia kareen s say hamare prectice howa kareege...
Thanks alot
thanks yar bhut aacha kaam kar rahay ho next class ka wait kar rha hon
Excellent work Shakeel bhai
yaar php bananay k liye website khon se open karay pls reply me ?
aoa kya haal hai shakeel bhai aap ka app ky thread sy madad to kafi hoo rahi hai mger mujhy aik problem hai or woh yeh k main jub bhi dreamweaver mian php ka code likh ker .PHP ky sath save kerta hoon ya .HTML k sath save kerta hoon woh mujhy php ka result nhi deta main nay aap ki classes say bhi code dykh ker likha mager mushkil asaan nhi hoo rahi so plzzzz shakeel bhai meri madad keryn main bohat paryshan hoon.
Bookmarks