The Wiki World Portal: Difference between revisions

From MediaWiki
Jump to navigationJump to search
No edit summary
Line 111: Line 111:
</HTML>
</HTML>
===New===
===New===
<HTML>
<html>
<title>A simple math calculator</title>
<body>
Insert two numbers in the next form and hit submit button <br>
<form action="calculation.php" method="post">
Firstnumber: <input name="num1" type="text" /><br>
Secondnumber: <input name="num2" type="text" />
<input type="submit" />
</form>
</body>
</html>




<html>
<head>
<head>
<style type="text/css">
<title>Simple Math With User Input</tite>
 
</style>
<script type="text/javascript">
 
</script>
</head>
</head>
<body>
<body>
 
<?php
$num1 = $_POST['num1'];
$num2 = $_POST['num2'];
$a = $num1 + $num2;
$b = $num1 - $num2;
echo "The sum of the two numbers is ". $a
echo "The difference of the two numbers is ". $b
?>
</body>
</body>
</html>
</html>

Revision as of 16:43, 2 December 2012

<!.. <websiteFrame> website=http://www.wikireedia.net/blog height=400 width=100% border=3 scroll=auto </websiteFrame> ..>



Featured Article TEST

In this test I want to add

  • (A) A featured article
  • (B) Only show the summary of the featured article
  • (C) Show a slide show of featured articles

{{#slideshow:

|id=bar refresh=10000 transition=fade sequence=forward }}

HTML TEST

First name:
Last name:

..

Acme

Acme Widgets  - Get Your Widgets Here!

The Acme Widget Company

Get Your Widgets Here!

Please make your selections from the following choices:

 

If you have questions or difficulties with this order page, please contact our Customer Service Department (see our Contacts page.)

Please tell us who you are (red denotes required information):

Class "A" Widgets 1.25 Class "B" Widgets 2.35 Class "C" Widgets 3.45        

TOTALS:    

New

A simple math calculator Insert two numbers in the next form and hit submit button
Firstnumber:
Secondnumber:


Simple Math With User Input</tite> </head> <body> <?php $num1 = $_POST['num1']; $num2 = $_POST['num2']; $a = $num1 + $num2; $b = $num1 - $num2; echo "The sum of the two numbers is ". $a echo "The difference of the two numbers is ". $b ?> </body> </p>