Enter Keyword Hear for Search This Blog

Friday, 23 February 2018

How to make feedback form

<?php session_start(); ?>
<html>
<head>
  <?php include('inc/head.php'); ?>
</head>
<body>
  <div class="container">
    <div class="header text-center">
      <?php include("inc/header.php"); ?>
    
      <nav class="navbar navbar-inverse" role="navigation">
        <?php include("inc/menu.php"); ?>
      </nav>
    </div>
    <div class="row">
      <div class="col-lg-3">
        <?php include("inc/sidebar.php"); ?>
      </div>
    <!-- </div>
    <div class="row"> -->
      <div class="col-lg-9">
        <div class="bs-component">
          <div class="panel panel-primary">
            <div class="panel-heading">
              <h3 class="panel-title">Feedback</h3>
            </div>
            <div class="panel-body">
              <h1>Feedback</h1>
              <hr/>
              <div class="col-lg-5">
                <?php 
                  if (isset($_SESSION['feed_error']['fcom']))
                  {
                    echo '<span class="alert alert-success">'.$_SESSION['feed_error']['fcom'].'</span>';
                  }
                ?>
                <form action="feedback_pro.php" method="post">
                  <input type="text" name="unm" class="form-control" autofocus placeholder="Enter Your Name" />
                  <?php 
                    if (isset($_SESSION['feed_error']['unm']))
                    {
                      echo '<span class="alert alert-danger">'.$_SESSION['feed_error']['unm'].'</span>';
                    }
                  ?>
                  <br/>
                  <input type="email" name="email" class="form-control" autofocus placeholder="Enter Email-Id" />
                  <?php 
                    if (isset($_SESSION['feed_error']['email']))
                    {
                      echo '<span class="alert alert-danger">'.$_SESSION['feed_error']['email'].'</span>';
                    }
                    if (isset($_SESSION['feed_error']['email2']))
                    {
                      echo '<span class="alert alert-danger">'.$_SESSION['feed_error']['email2'].'</span>';
                    }
                  ?>
                  <br/>
                  <input type="text" name="mno" class="form-control" autofocus placeholder="Enter Mobile No" />
                  <?php 
                    if (isset($_SESSION['feed_error']['mno']))
                    {
                      echo '<span class="alert alert-danger">'.$_SESSION['feed_error']['mno'].'</span>';
                    }
                    if (isset($_SESSION['feed_error']['mnolen']))
                    {
                      echo '<span class="alert alert-danger">'.$_SESSION['feed_error']['mnolen'].'</span>';
                    }unset($_SESSION['reg_error']);
                  ?>
  <br/>
  <textarea name="sub" class="form-control" placeholder="Enter Your Subject"></textarea>
  <?php 
                    if (isset($_SESSION['feed_error']['sub']))
                    {
                      echo '<span class="alert alert-danger">'.$_SESSION['feed_error']['sub'].'</span>';
                    }
                    unset($_SESSION['feed_error']);
                  ?>
                  <br/>
                  <input type="submit" value="Submit" class="btn btn-info" />
                </form>
              </div>   
            </div>
          </div>
        </div>        
      </div>
    </div>


  </div>
</body>
</html>

Thursday, 22 February 2018

How to make contact page

<?php session_start(); 
  if(!isset($_SESSION['email']))
  {
    header('location:login.php');
  }
?>
<html>
<head>
  <?php include('inc/head.php'); ?>
</head>
<body>
  <div class="container">
    <div class="header text-center">
      <?php include("inc/header.php"); ?>
    
      <nav class="navbar navbar-inverse" role="navigation">
        <?php include("inc/menu.php"); ?>
      </nav>
    </div>
    <div class="row">
      <div class="col-lg-3">
        <?php include("inc/sidebar.php"); ?>
      </div>
    <!-- </div>
    <div class="row"> -->
      <div class="col-lg-9">
        <div class="bs-component">
          <div class="panel panel-primary">
            <div class="panel-heading">
              <h3 class="panel-title">
                Contact
              </h3>
            </div>
            <div class="panel-body img">
              <div class="bootshape">
                <div class="page-header">
                  <h1>Contact</h1>
                </div>
                <blockquote>
                  <p>Full Name.</p>
                  <footer>Bhavsinh Chauhan</footer>
                </blockquote>
                <blockquote>
                  <p>Email Id.</p>
                  <footer><a href="bhavsinh.chauhan123@gmail.com">bhavsinh.chauhan123<cite title="Source Title">@gmail.com</cite></a></footer>
                </blockquote>
                <blockquote>
                  <p>Mobile No.</p>
                  <footer>769847 <cite title="Source Title">4949</cite></a></footer>
                </blockquote>
                <blockquote>
                  <p>Addresh.</p>
                  <footer>Saurashtra University  <cite title="Source Title"></cite></a></footer>
                  <footer>Girnar Boys Hostel near Munjka Gam  <cite title="Source Title"></cite></a></footer>
                  <footer>Rajkot 360005  <cite title="Source Title"></cite></a></footer>
                </blockquote>
                <!-- <blockquote class="blockquote-reverse">
                  <p>Mobile No.</p>
                  <footer>769847 <cite title="Source Title">4949</cite></footer>
                </blockquote> -->
              </div>
            </div>
          </div>
        </div>        
      </div>
    </div>


  </div>
</body>
</html>

How to make about page

<?php session_start(); 
  if(!isset($_SESSION['email']))
  {
    header('location:login.php');
  }
?>
<html>
<head>
  <?php include('inc/head.php'); ?>
</head>
<body>
  <div class="container">
    <div class="header text-center">
      <?php include("inc/header.php"); ?>
    
      <nav class="navbar navbar-inverse" role="navigation">
        <?php include("inc/menu.php"); ?>
      </nav>
    </div>
    <div class="row">
      <div class="col-lg-3">
        <?php include("inc/sidebar.php"); ?>
      </div>
    <!-- </div>
    <div class="row"> -->
      <div class="col-lg-9">
        <div class="bs-component">
          <div class="panel panel-primary">
            <div class="panel-heading">
              <h3 class="panel-title">
                About
              </h3>
            </div>
            <div class="panel-body">
              <div class="row aboveimg">
                <div class="col-md-10">
                  <h1>Two types of converter is there.</h1>
                  </br>
                  <div class="panel-group" id="accordion">
                    <div class="panel panel-default">
                      <div class="panel-heading">
                        <h4 class="panel-title">
                          <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
                            1.Image to Pdf Convert
                          </a>
                        </h4>
                      </div>
                      <div id="collapseOne" class="panel-collapse collapse in">
                        <div class="panel-body">
                          <h4>1. Single Image convert</h4>
                          <p>
                            - Only convert single image extension is jpg,png,gif<br/>
                            - With validation<br/>
                            - After convert image is go gallary folder in and pdf file create PDF/ folder in
                          </p>

                          <h4>2. Multiple Image convert</h4>
                          <p>
                            - Bydefault you have five file-Box is provide, image extension is jpg,png,gif valid.<br/>
                            - With validation.<br/>
                            - After convert pdf is go PDF/ folder in and image go gallary/ folder in.<br/>
                            - Click (+) button you have get one extra file-box. <br/>
                            - You have compresh all image in single pdf and individual pdf in.<br/>
                          </p>
                        </div>
                      </div>
                    </div>
                    <div class="panel panel-default">
                      <div class="panel-heading">
                        <h4 class="panel-title">
                          <a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">
                            2.Pdf to Html Convert
                          </a>
                        </h4>
                      </div>
                      <div id="collapseTwo" class="panel-collapse collapse">
                        <div class="panel-body">
                          <h4>1. Single Image convert</h4>
                          <p>
                            - Only convert single pdf file into html extension is pdf,text<br/>
                            - With validation<br/>
                            - After convert pdf file is go pdftohtml/pdf/ folder in and html file create pdftohtml folder in
                          </p>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>        
      </div>
    </div>
  </div>
</body>
</html>

Sunday, 18 February 2018

How to send mail using php code

<?php
header('Content-type: application/json');
$status = array(
'type'=>'success',
'message'=>'Email sent!'
);

    $name = @trim(stripslashes($_POST['fnm']));
    $name = @trim(stripslashes($_POST['lnm'])); 
    $email = @trim(stripslashes($_POST['email'])); 
    $email = @trim(stripslashes($_POST['subject'])); 
    $message = @trim(stripslashes($_POST['message'])); 

    $email_from = $email;
    $email_to = 'email@gmail.com';

    $body = 'fName: ' . $fnm . "\n\n" . 'lName: ' . $lnm . "\n\n" . 'Email: ' . $email . "\n\n" . 'Subject: ' . $subject . "\n\n" . 'Message: ' . $message;

    $success = @mail($email_to, $subject, $body, 'From: <'.$email_from.'>');

    echo json_encode($status);
    die;
?>

Monday, 1 January 2018

USING THE BORDER ATTRIBUTE

USING THE BORDER ATTRIBUTE

<HTML>
  <HEAD>
    <TITLE>Working with Images</TITLE>
  </HEAD>
  <BODY STYLE="background-image:url(image/1.gif);">
     <B>Controlling Image Borders!</B>
     <CENTER>
       <I>Image Without a BORDER</I>
       <BR/><BR/>
       <IMG src="iamges/2.gif"/>
       <BR/><BR/>
       <I>Image With border-width:3px;</I>
       <BR/><BR/>
       <IMG STYLE="border-width:3px;" src="iamges/2.gif"/>
       <BR/>
     </CENTER>
  </BODY>
</HTML>

HYPER TEXT MARKUP LANGUAGE(HTML)

HYPER TEXT MARKUP LANGUAGE

The language used to develop web pages is called Hyper Text Markup Language (HTML). HTML is the language interpreted by a Browser. Web Pages are also called HTML documents. HTML is a set of special codes that can be embedded in text to add formatting and linking information. HTML is specified as TAGS in an HTML document (i.e. the Web page).

HTML TAGS
Tags are instructions that are embedded directly into the text of the document. An HTML tag is a single to a browser that it should do something other than just throw text up on the screen. By convention  all HTML tags begin with an open angle bracket(<) and end with a close angle bracket(>).

HTML tags can be of two types:

Paired Tags
A tag is said to be a paired tag if it, along with a compation tag, flanks the text. For example the <B> tag is a paired tag. The <B> tag with its companion tag </B> causes the text contained between them to be rendered in bold. The effect of other paired tag is applied only to the text they contain.

In paired tags, the first tag (<B>) is often called the opening tag and the second tag (</B>) is called the closing tag.

The opening tag activates the effect and the closing tag turns the effect off.

Singular Tags
The second type of tag is the singular or stand-alone tag. A stand-alone tag does not have a companion tag For Example <BR/> tag will insert a line break. This tag does not require any companion tag.

Note :
Some HTML tags require additional information to be supplied to them. For instance, when a picture is placed on the screen, information like the height and width of the picture can be specified.

Additional information supplied to an HTML tag is known as Attributes of a tag. Attributes are written immediately following the tag, separated by a space Multiple attributes can be associated with a tag, also separated by a space.

Thursday, 12 October 2017

basic concepts of internet

Internet Network
Basic Concepts Of Internet


INTERNET DOMAIN

Each computer that has a permanent IP address, runs Server software and offers information to clients, is considered to be a Physical Domain i.e. a place (domain) where information is available.

The Physical Domain

All Internet Servers are connected to the Internet via an Internet Gateway. An Internet gateway is usually provided by one of the global networking giants that have setup these gateways. These networking giants are the companies who have spent enormous sums of money to set up the physical networks that circle the globe.

These physical networks are called the Internet Blackbone. The Internet  backbone is a heterogeneous mix of networking technologies, which have been successfully implemented and currently fully operational.The networking giants are companies like British Telecom, Hyundai, AT&T etc.


INTERNET SERVER IDENTITIES

InterNIC, a quasi goverment body in the U.S.A registers and issues Internet Servers thair unique IP addresses.
InterNIC also authorizes organizations in other countries to issue IP addresses. In India, NCST (National center of Software Technology)  a quasi goverment body is authorized to issue permanent IP addresses. This really means that the Internet Server must be located within India.

Registering A Virtual Domain With InterNIC

Log onto an InterNIC Server. Fill up a registeration from online. Pay the two-year registration fee to InterNIC. This registers a virtual domain with InterNIC.

Detailed Registeration will ask for information like Personal Details, Billing Contact Information, Technical Contact Information, and Administrative Contact Information and so on.

When a company  registers a virtual domain name with InterNIC, InterNIC requires a unique IP address to be specified. The unique IP address specified, is generally the IP address of the Internet server, which will host the Virtual Domain.

InterNIC's address is     http://www.internic.net/regist.html
  1. InterNIC will scan its registered database to ensure that the domain name is unique.
  2. If the name is unique, InterNIC will inform the registring company or individual that its registration has been accepted.
  3. Once the Domain name is registered the registering company has 30 days within which payment has to be made to InterNIC for the registration. Once registered, the Domain registration is valid for 2 years. After a two year period the registration must be renewed or the registration lapses.
  4. If the name is not unique, the registration is rejected and InterNIC will inform the company the registeration has been rejected due to the Domain name being dublicate.

Thursday, 31 August 2017

update

update

1.COOKIES

=> SETTING A COOKIE  

Syntax : 

Set-cookie:NAME=value;EXPIRES=date;PATH=path;DOMAIN=domain;SECURE
The NAME=value is the only required piece of information that must be included in the set-cookie field .
All other entries are optional.

Example :

<html>
  <head>
    <script>
      function newcookie(cookiename, value)
      {
         document.cookie=cookiename+"="+value;
      }
    </script>
  </head>
  <body>
     <script>
       document.write('<form>');
         document.write('<table border="0" width="100%">');
           document.write('<tr>');
             document.write('<td width="25%">First Name</td>');
              document.write('<td width="25%">
                 <input type="text" name="first_nm"                                   onBlur="newcookie(this.name,this.value);"
                 Size="20" type="text" value="'+cfirst_nm+'">
                 </td>');
             document.write('</td>');
           document.write('</tr>');
         document.write('</table>');
       document.write('</form>');
    </script>
  </body>
</html>

2.VALIDATION

2.1 Field Name cannot be left empty
------------------------------
/* Cheking if the variable for Client's name is empty,(i.e.a blank Client's name field was submitted .) */

if(empty($_POST['txtName']))
{
   /*returning data entry form if the Client's name is empty.*/
   $alertmessage="<center>
                   Filed for Client\'s Name is empty!
                  </center>";
   inclide("page2.php");
   exit;
}

2.2 No double spacing in the field name captured
-----------------------------------------
=> To test double spacing validation,insert double spaces in between the Client Name and click submit button .
=> The PHP code checks the contents of Client Name field returned by the Browser. As it has double spacing,an error message is generated and stored in the variable $alertmessage.

ereg("([[:space:]]{2})",$_POST["txtName"]);
------------------------------------------------------------------------------
else
{
     if(ereg("([[:space:]]{2})",$_POST["txtName"]))
  {
     /*
       returning data entry form if the Client's name contains             double spaces.
     */
     $alertmessage="<center>
                     Double spaces found in Client\'s Name!
                    </center>";
     inclide("page2.php");
     exit;
  }
}
--------------------------------------------------------------------------------------------------------

basic code

Basic Code

1. How to create one form

<html>
  <head>
    // you have put hear any meta tag or css depended on you.
  </head> 
  <body>
        <form action="process.html" method="post">
           Name : <input type="text" name="nm"/><br/>
           Add : <input type="text" name="add"/><br/>
           Mo No : <input type="text" name="no"/><br/>
           Other : <input type="text" name="otr"/><br/>
        </form>
  </body>
</html>
 
2. How to use switch case

switch (num)
     {

           case 1: alert("One");

           break;

           case 2: alert("Two");

           break;

           case 3: alert("Three");

           break;

           case 4: alert("Four");

           break;

           case 5: alert("Five");

           break;

                  

           default: alert("Select 1 to 5 Number");
    }

3. How to create array using script

var demo = new array();

                      demo[0] = new array();

                      demo[0][0]='A0';

                      demo[0][1]='B0';

                      demo[0][2]='C0';



                      demo[1] = new array();

                      demo[1][0]='A1';

                      demo[1][1]='B1';

                      demo[1][2]='C1';



                      demo[2] = new array();
                      demo[2][0]='A2';
                      demo[2][1]='B2';
                      demo[2][2]='C2';

       

                      document.write("A : "+demo[0][0]+"<br/>");

                      document.write("B : "+demo[0][1]+"<br/>");

Tuesday, 11 October 2016

what is ajax?how to create ajax with php code

Ajax Introduction

એજેક્સ નો ઉપીયોગ કરી ને તમે પેજ લોડ કાર્ય વિના બધી માહિતી મેળવી શકો.એજેક્સ થી તમે કોઈ પણ ડેટા ઝડપ થી મેળવી શકો છો

- अजाक्स का उपियोग करके आप कोई भी डाटा स्पीड में ले सकते हे और इसकी प्रोसेस प्रोसेसबार में नहीं दिखती अजाक्स अपने डाटा सर्वर को सेंड करते समय सेकुएंस मेन्टेन नहीं करता इस लिए हम डाटा फ़ास्ट एक्सेस कर सकते हे

- Ajax stands for Asynchronous JavaScript and XML. Ajax isn’t a technology; it mixes well-known programming techniques in an uncommon way to enable web developers to build Internet applications with much more appealing user interfaces.

The parts of an Ajax application that happen "under the hood" of the browser, such as sending server queries and dealing with the returned data, are written in JavaScript, and XML is a means of coding and transferring formatted information used by Ajax to efficiently transfer data between server and client.

-  You cannot make use of the XMLHTTPRequest until you have created an instance of it.

-Microsoft first introduced the XMLHTTPRequest object, implementing it in Internet Explorer 5 as an ActiveX object. 


- The following line creates an XMLHTTPRequest object called request

               var request = new XMLHTTPRequest(); 
-  Here we have declared a variable request and assigned to it the value returned from the statement
new XMLHTTPRequest(),which is invoking the constructor method for the XMLHTTPRequest object.
-  To achieve the equivalent result in Microsoft Internet Explorer, you need to create an ActiveX object.
 Here's an example
               var request = new ActiveXObject("Microsoft.XMLHTTP");
- This assigns the name request to the new object.
-  Some versions of Internet Explorer have a different version of MSXML, the Microsoft XML parser, 
installed in those cases you need to use the following instruction
               var request = new ActiveXObject("Msxml2.XMLHTTP");
- For cross Browser detection, this is the following code :

function ajaxFunction()
{
    var xmlhttp;
    if (window.XMLHttpRequest)
    {
      // code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp=new XMLHttpRequest();
    }
    else if (window.ActiveXObject)
    {
      // code for IE6, IE5
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
    else
    {
      alert("Your browser does not support XMLHTTP!");
    }
}

In above example create a variable named xmlhttp to hold the XMLHttpRequest object,
Try to create the XMLHttpRequest object with xmlhttp=new XMLHttpRequest(). If that fails, 
try xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"). 
This is for IE6 and IE5. If that fails too, the user has a very outdated browser, 
and will get an alert stating that the browser doesn't support XMLHTTP.

Note: The code above can be used every time you need to create an XMLHttpRequest object.
-  XMLHTTPRequest class is predefined in php
-  Ajax have a some method and properties
Method : open, send
Properties :onreadystatechangereadyState, responseText and status 

Ajax With Html demo.html

ajaxdemo.html

<script type="text/javascript">
var http = false;
if(navigator.appName == "Microsoft Internet Explorer")
{
                        http = new ActiveXObject("Microsoft.XMLHTTP");
} else
{
  http = new XMLHttpRequest();
}
function replace()
{
  http.open("GET", "test.txt", true);
  http.onreadystatechange=function()
 {
    if(http.readyState == 4)
   {
      document.getElementById('changed').innerHTML = http.responseText;
    }
 }
  http.send(null);
}
</script>
<p><a href="javascript:replace()">Replace Text</a></p>

<div id="changed">
            Hello, world!
</div>

test.txt
This is the content of test.txt

Sunday, 2 October 2016

how to use css in your website

Basic Introduction related CSS


how create template using html5 tags



- यह पोस्ट में आप HTML5 के टैग का उपयोग करके बहुत सरलता से अपनी डिजाईन और फॉर्म बना सकते हे.
- In this post you very simply by using HTML5 tags, create your own design and form.
- આ પોસ્ટ માં તમે HTML5 નો ઉપયોગ કરી ખુબજ સરળતા થી તમારી પોતાની Design અને ફોર્મ(Form) બનાવી શકો છો.

Featured post

what is ajax?how to create ajax with php code

Ajax Introduction -  એજેક્સ નો ઉપીયોગ કરી ને તમે પેજ લોડ કાર્ય વિના બધી માહિતી મેળવી શકો.એજેક્સ થી તમે કોઈ પણ ડેટા ઝડપ થી મેળવી શકો છો...