Thursday, 25 February 2016

How to creat form in php

 index.php


<html>
<head>
<title></title>
<style>
body{font:90% Arial, Helvetica, sans-serif;
margin:20px;}
.wrap
{
    width:570px;
    height:533px;
    border:1px solid 000;
    background:pink;
    margin:0 auto;
    border-radius:10px;
}
label
{
    color:red;
    float:left;
    width:8em;
    text-align:left;
}
input
{
    width:20em;
    margin-left:1.5em;
    margin-bottom:.5em;
}
#Submit
{
    border:2px solid navy;
    width:8em;
    margin-left: 10.2em;
}
#Reset
{
    border:2px solid navy;
    width:5em;
}

</style>
</head>
<body>
<div class="wrap">

<fieldset>
<legend><i><b>A Simple Application Form</b></i></legend>

<h1><b><i><u>TechNode Computer Training Institute<i></u></b></h1>

</fieldset>

<fieldset>
<legend><i>TechNode Inc Kubernath Kushinagar Uttar-Pradesh(274304)</i></legend>
<form method="POST" action="project.php">
<label>First Name:</label>
<input type="text" name="firstname" id="firstname" autofocus><br>
<label>Last Name:</label>
<input type="text"  name="lastname" id="lastname" ><br>
<label>Address:</label>
<input type="text" name="address" id="address"><br>
<label>City:</label>
<input type="text" name="city" id="city"><br>
<label>State:</label>
<input type="text" name="state" id="state"><br>
<label>Zip Code:</label>
<input type="text" name="zipcode" id="zipcode"><br>
<label>Post:</label>
<input type="text" name="post" id="post"><br>
<label>Dist:</label>
<input type="text" name="dist" id="dist"><br>
<label>Contry:</label>
<input type="text" name="contry" id="contry"><br>
<label>Phone:</label>
<input type="text" name="phone" id="phone"><br>
<label>E-mail:</label>
<input type="text" name="email" id="email"><br>

<input type="submit" id="Submit" >  <input type="Reset" id="Reset">



</fieldset>
</form>
</div><!--end wrap-->
</body>
</html>


project.php
<?php
if(count($_POST)>0){
    foreach($_POST as $key=>$value){
        if(empty($_POST[$key]))    {
            $message = ucwords($key) . " Field is required";
            break;
           
        }
   
    }

$firstname = $_POST['firstname'];
$lastname     = $_POST['lastname'];
$address   = $_POST['address'];
$city  = $_POST['city'];
$state  = $_POST['state'];
$zip  = $_POST['zipcode'];
$post  = $_POST['post'];
$dist  = $_POST['dist'];
$contry  = $_POST['contry'];
$phone  = $_POST['phone'];
$email  = $_POST['email'];

   
}
?>
<!DOCTYPE html>
<html>
    <head>
            <style>
                    body{font:90% Arial, Helvetica, sans-serif;
margin:20px;}
.wrap
{
    width:570px;
    height:400px;
    border:1px solid 000;
    background:pink;
    margin:0 auto;
    border-radius:10px;
}
label
{
    color:red;
    float:left;
    width:8em;
    text-align:left;
}
input
{
    width:20em;
    margin-left:1.5em;
    margin-bottom:.5em;
}
.errors{color: red;}
</style>
</head>
<body>
    <div class="wrap">

<fieldset>
<legend><i><b>A Simple Application Form</b></i></legend>
<p class="errors"><?php echo $message ;?></p>
<h1><b><i><u>TechNode Computer Training Institute<i></u></b></h1>

</fieldset>

<fieldset>
<legend><i>TechNode Inc Kubernath Kushinagar Uttar-Pradesh(274304)</i></legend>

<label>First Name:</label>
<?php echo $firstname; ?>
<br>
<label>Last Name:</label>
<?php echo $lastname ;?>

<br>
<label>Address:</label>
<?php echo $address ;?>

<br>
<label>City:</label>
<?php echo $city ;?>

<br>
<label>State:</label>
<?php echo md5($zip) ;?>

<br>
<label>Post:</label>
<?php echo $post ;?>

<br>
<label>Dist:</label>
<?php echo $dist ;?>

<br>
<label>Contry:</label>
<?php echo $contry ;?>

<br>
<label>Phone:</label>
<?php echo $phone ;?>

<br>
<label>E-mail:</label>
<?php echo $email ;?>

</fieldset>
</div><!--end wrap-->
</body>
</html>

Result:





Krishna Kumar Gupta Powered By- TechNode Computer Kubersthan 274304.

Friday, 8 January 2016

How to Creat Text Bold ?

<html>
<head><title>bold</title>
</head>
<body>
            <h1>there is a no word of <b>imposible</b> in my life dictionary</h2>
</body>
</html>

How to Creat a Form in html

<html>
<head>
<style>
<style type="text/css">
.form-style-3{
    max-width: 450px;
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}
.form-style-3 label{
    display:block;
    margin-bottom: 10px;
}
.form-style-3 label > span{
    float: left;
    width: 100px;
    color: #F072A9;
    font-weight: bold;
    font-size: 13px;
    text-shadow: 1px 1px 1px #fff;
}
.form-style-3 fieldset{
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    margin: 0px 0px 10px 0px;
    border: 1px solid #FFD2D2;
    padding: 20px;
    background: #FFF4F4;
    box-shadow: inset 0px 0px 15px #FFE5E5;
    -moz-box-shadow: inset 0px 0px 15px #FFE5E5;
    -webkit-box-shadow: inset 0px 0px 15px #FFE5E5;
}
.form-style-3 fieldset legend{
    color: #FFA0C9;
    border-top: 1px solid #FFD2D2;
    border-left: 1px solid #FFD2D2;
    border-right: 1px solid #FFD2D2;
    border-radius: 5px 5px 0px 0px;
    -webkit-border-radius: 5px 5px 0px 0px;
    -moz-border-radius: 5px 5px 0px 0px;
    background: #FFF4F4;
    padding: 0px 8px 3px 8px;
    box-shadow: -0px -1px 2px #F1F1F1;
    -moz-box-shadow:-0px -1px 2px #F1F1F1;
    -webkit-box-shadow:-0px -1px 2px #F1F1F1;
    font-weight: normal;
    font-size: 12px;
}
.form-style-3 textarea{
    width:250px;
    height:100px;
}
.form-style-3 input[type=text],
.form-style-3 input[type=date],
.form-style-3 input[type=datetime],
.form-style-3 input[type=number],
.form-style-3 input[type=search],
.form-style-3 input[type=time],
.form-style-3 input[type=url],
.form-style-3 input[type=email],
.form-style-3 select,
.form-style-3 textarea{
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border: 1px solid #FFC2DC;
    outline: none;
    color: #F072A9;
    padding: 5px 8px 5px 8px;
    box-shadow: inset 1px 1px 4px #FFD5E7;
    -moz-box-shadow: inset 1px 1px 4px #FFD5E7;
    -webkit-box-shadow: inset 1px 1px 4px #FFD5E7;
    background: #FFEFF6;
    width:50%;
}
.form-style-3  input[type=submit],
.form-style-3  input[type=button]{
    background: #EB3B88;
    border: 1px solid #C94A81;
    padding: 5px 15px 5px 15px;
    color: #FFCBE2;
    box-shadow: inset -1px -1px 3px #FF62A7;
    -moz-box-shadow: inset -1px -1px 3px #FF62A7;
    -webkit-box-shadow: inset -1px -1px 3px #FF62A7;
    border-radius: 3px;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;  
    font-weight: bold;
}
.required{
    color:red;
    font-weight:normal;
}
</style>

</style>
</head>
<body>
<div class="form-style-3">
<form>
<fieldset><legend>Personal</legend>
<label for="field1"><span>Name <span class="required">*</span></span><input type="text" class="input-field" name="field1" value="" /></label>
<label for="field2"><span>Email <span class="required">*</span></span><input type="email" class="input-field" name="field2" value="" /></label>
<label for="field3"><span>Phone <span class="required">*</span></span><input type="text" class="input-field" name="field3" value="" /></label>
<label for="field4"><span>Subject</span><select name="field4" class="select-field">
<option value="Appointment">Appointment</option>
<option value="Interview">Interview</option>
<option value="Regarding a post">Regarding a post</option>
</select></label>
</fieldset>
<fieldset><legend>Message</legend>
<label for="field6"><span>Message <span class="required">*</span></span><textarea name="field6" class="textarea-field"></textarea></label>
<label><span>&nbsp;</span><input type="submit" value="Submit" /></label>
</fieldset>
</form>
</div>
</body>
</html>



Output- Result

Sunday, 27 December 2015

how to creat form in html



<html>
<head>
<style>
.wrap
{width:65px;
height:295px;
border:1px solid #000;
margin:left;
padding:10px;}
</style>
</head>
<body>
<div class="wrap">
<lable>size:</lable></br>
<select name="size" id="size">
<optgroup label="juniors">
<option value="605">605</option>
<option value="550">550</option>
<option value="501">501</option>
<option value="110">110</option>
<option value="600">600</option>
<option value="764">764</option>
<option value="300">300</option>
<option value="1000">1000</option>
</optgroup>
<optgroup label="misses">
<option value="300">300</option>
<option value="400">400</option>
<option value="500">500</option>
<option value="600">600</option>
<option value="700">700</option>
</optgroup>
</select>
</div>
</body>
</html>



Result:

how to open link style in html

<!DOCTYPE html>
<html>
<head><title>css-example</title>
<style>
a:hover{color:red;}
p{text-transform:capitalized;}
h2{line-height:0.1cm;}
</style>
</head>
<body>
<p>Admission for CCC Course for more information <a href="www.technode.in">Click Here</a></p>
<h1>Who was Narendra Modi? <a href="www.technode.in">Click Here</a><h1>

</body>
</html>

//Output result//