unknowncheats uc-forum.com ucdownloads ucdownloads.com

Go Back   UC-Tutorials - Multiplayer Game Hacking and Cheat Tutorials > Web / Scripting > PHP

- Sponsored Advertisement -
http://www.myfpscheats.com/


Reply
 
Thread Tools Display Modes
  #1  
Old 04-13-2010, 03:46 AM
learn_more learn_more is offline
Member
 
Join Date: Feb 2010
Posts: 59
Default Simple Number Doubler

by Decaf,

Hey,
Its been a while from my last post (I guess this site went down due to lack of funds), but were back and this site looks better then ever! This is a simple number doubler / trippler made in PHP. Enjoy!

PHP Code:
<html>
<head>
<title>Number Doubling and/or Tripling Program</title>
</head>
<body>
<h2 align="center">Number Doubler and/or Tripler</h2>
    <form method="post">
        <input type="text" name="number" />&nbsp; Please enter a number to double.<br />
        <input type="text" name="triple" />&nbsp; Please enter a number to triple (optional).<br />
        <input type="submit" value="Calculate!" />
    </form>
<hr color="black" size="2" noshade />
<?php
if ($_POST["number"] != 0) {
    print 
"The number&nbsp;<b>";
    print 
number_format($_POST["number"]);
    print 
"</b>&nbsp;doubled is&nbsp;<b>";
    print 
number_format($_POST["number"] * 2);
    print 
"</b>.";
} else {
    print 
"No Number Entered";
}
//Spacer
print "<br />";
// End Spacer
if ($_POST["triple"] != 0) {
    print 
"The number&nbsp;<b>";
    print 
number_format($_POST["triple"]);
    print 
"</b>&nbsp;tripled is&nbsp;<b>";
    print 
number_format($_POST["triple"] * 3);
    print 
"</b>";
} else {
    print 
"No Number Entered";
}
?>
<hr color="#999999" size="2" noshade />
<font style="font-size:8pt;font-style:italic;">Inputted strings are not saved to the server.</font>
</body>
</html>
Reply With Quote
Reply

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit

Tags
doubler, number, simple

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 04:20 PM.