Friday, March 8, 2019

                                                                PHP PROJECT   SIMPLE 
                          PHP   VARIABLE AND FORM POST METHOD, CSS AND HTML  
                                                                APPLY THIS ....
                            SCREEN SHOT 
1


2                                 SCREEN SHOT   




USER REQUEST PAR CODE  SEND KARU GA 

                                            

Wednesday, March 6, 2019

PHP 2nd class Add Code








<?php
if (isset($_POST['Add'])){
$a = $_POST['num1'];
$b = $_POST['num2'];
$c = $a + $b
?>
<h3> Answer is :<?php echo $c ?></h3>
<?php
}
?>
<form method="post">
<label> Enter First Number </label>
<input type="number" name="num1"/>
<br/>
<br/>
<label> Enter Second Number </label>
<input type="number" name="num2"/>
<input type="Submit" value="Add" name="Add"/>
</form>

Php two



















<body>
<form action = "" method = "post">
<label> Enter name </label>
<input type = "text" name = "txtname"/>
<input type = "submit" value = "Save" name = "b1"/>
</form>

<?php

if(isset($_POST['b1'])){
$name = $_POST['txtname'];
?>
<h1> your name is : <?php echo $name ?> </h1>
<?php
}
?>
</body>

Monday, March 4, 2019

Php one

Php One

I












<html>
<body>
<?php
$a = 'Naptechpk';
?>
<center><h1 style="color:green;font-style: oblique;"><?php echo $a; ?></h1></center>
</body>
</html>



PHP THREE