Showing posts with label sql. Show all posts
Showing posts with label sql. Show all posts

Sunday, 30 March 2014

PHP TUTORIALS-POST METHOD

PHP TUTORIALS SESSION 3 POST METHOD WITH EXAMPLE PROGRAM 



HTML Program Name:- htmlpost1.html

<html>

<head>

<body>

<h1><center>Post Method</center></h1>

<form action="post1.php" method="post">

Name:<input type="text" name="name">

Email:<input type="text" name="email">

<input type="submit" value="Submit">

</form>

</body>

</head>

</html>


PHP Program Name:- post1.php


Welcome <?php echo $_POST["name"];?>

Your email id is:<?php echo $_POST["email"]; ?>


Friday, 28 February 2014

PHP TUTORIALS-GET METHOD

CODING FOR GET METHOD WITH EXAMPLE PROGRAM SESSON-2


Program name:- htmlget1.php

<html>

<head>

<body>

<h1><center>GET METHOD</center></h1>

<form action="get1.php" method="get">

Name:<input type="text" name="name">

Email:<input type="text" name="email">

<input type="submit" value="submit">

</body>

</head>

</html>


get1.php

 

Welcome<?php echo $_GET["name"];?>

Your Email Address is: <?php echo $_GET["email"];?>