What is Lorem Ipsum
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Where Does it come from? Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source
. Lorem Ipsum comes
from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit
comes from a line in section 1.10.32. The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.
//////////////////////////////////////////
<?php
$name = "";
$address = "";
if($_POST["fn"] == "")
{
echo "You must provide your name<br/>";
?>
<meta http-equiv="refresh" content="2; url=index.html"/>
<?php
}
else
{
$name = $_POST["fn"];
}
if($_POST["ad"] == "")
{
echo "You must provide your address<br/>";
?>
<meta http-equiv="refresh" content="2; url=index.html"/>
<?php
}
else
{
$address = $_POST["ad"];
}
if($_POST["fn"] != "" && $_POST["ad"] != "")
{
echo "Welcome " . $name . ", your address is: " . $address;
}
?>
////////////////////////////////////////////////////////////////////////////////////////
<?php
if(isset($_GET["age"]))
{
$age = $_GET["age"];
if($age == 1)
{
echo "Your age range is <18<br/>";
}
else if($age == 2)
{
echo "Your age range is 18-30<br/>";
}
else if($age == 3)
{
echo "Your age range is >30<br/>";
}
}
else
{
echo "You must select your age<br/>";
?>
<meta http-equiv="refresh" content="2; url=index.html"/>
<?php
}
?>
////////////////////////////////////////////////////////////////////////////////////
<?php
if(isset($_POST["services"]))
{
$ser = $_POST["services"];
$n = count($ser);
for($i = 0; $i < $n; $i++)
{
if($ser[$i] == 1)
{
echo "You have ordered a Laptop<br/>";
}
else if ($ser[$i] == 2)
{
echo "You have ordered a mouse<br/>";
}
else if($ser[$i] == 3)
{
echo "You have ordered a keyboard<br/>";
}
//echo "You have selected " . $ser[$i] . "<br/>";
}
}
else
{
echo "Please select at least 1 product<br/>";
?>
<meta http-equiv="refresh" content="2; url=index.html"/>
<?php
}
?>
///////////////////////////////////
[youtube]
| <form action="reply1.php" method="post"> | |
| Name: <input type="text" name="fn"/> | |
| <br/> | |
| Address: <input type="text" name="ad"/> | |
| <br/> | |
| <input type="submit" value="Send Info 1"/> | |
| </form> |
<?php
$name = "";
$address = "";
if($_POST["fn"] == "")
{
echo "You must provide your name<br/>";
?>
<meta http-equiv="refresh" content="2; url=index.html"/>
<?php
}
else
{
$name = $_POST["fn"];
}
if($_POST["ad"] == "")
{
echo "You must provide your address<br/>";
?>
<meta http-equiv="refresh" content="2; url=index.html"/>
<?php
}
else
{
$address = $_POST["ad"];
}
if($_POST["fn"] != "" && $_POST["ad"] != "")
{
echo "Welcome " . $name . ", your address is: " . $address;
}
?>
////////////////////////////////////////////////////////////////////////////////////////
| <form action="reply2.php" method="get"> | |
| <input type="radio" name="age" value="1"/> <18 | |
| <br/> | |
| <input type="radio" name="age" value ="2"/> 18-30 | |
| <br/> | |
| <input type="radio" name="age" value="3"/> >30 | |
| <br/> | |
| <input type="submit" value="Send Info 2"/> | |
| </form> |
<?php
if(isset($_GET["age"]))
{
$age = $_GET["age"];
if($age == 1)
{
echo "Your age range is <18<br/>";
}
else if($age == 2)
{
echo "Your age range is 18-30<br/>";
}
else if($age == 3)
{
echo "Your age range is >30<br/>";
}
}
else
{
echo "You must select your age<br/>";
?>
<meta http-equiv="refresh" content="2; url=index.html"/>
<?php
}
?>
////////////////////////////////////////////////////////////////////////////////////
| <form action="reply3.php" method="post"> | |
| <input type="checkbox" name="services[]" value="1"/> Laptop | |
| <br/> | |
| <input type="checkbox" name="services[]" value="2"/> Mouse | |
| <br/> | |
| <input type="checkbox" name="services[]" value="3"/> Keyboard | |
| <br/> | |
| <input type="submit" value="Send Info 3"/> | |
| </form> |
<?php
if(isset($_POST["services"]))
{
$ser = $_POST["services"];
$n = count($ser);
for($i = 0; $i < $n; $i++)
{
if($ser[$i] == 1)
{
echo "You have ordered a Laptop<br/>";
}
else if ($ser[$i] == 2)
{
echo "You have ordered a mouse<br/>";
}
else if($ser[$i] == 3)
{
echo "You have ordered a keyboard<br/>";
}
//echo "You have selected " . $ser[$i] . "<br/>";
}
}
else
{
echo "Please select at least 1 product<br/>";
?>
<meta http-equiv="refresh" content="2; url=index.html"/>
<?php
}
?>
///////////////////////////////////
[youtube]
No comments
Post a Comment