Endless Paradigm

Full Version: Post random code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
feinicks Wrote:
boogschd Wrote:@ feinicks .. you couldve at least hid that under a spoiler/xlink tag >___>

Where's the fun in that?

none i suppose ...

nevermind me :D

Code:
if (I > U) {
gotoAndPlay("Epic Win!");
}
else
{
javascript:window.close()
//fail
}

Who knows where I got this from?

Code:
<script type="text/javascript"><!--
google_ad_client = "pub-7195350630812257";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
//2007-08-31: Test
google_ad_channel = "5912864126";
google_ui_features = "rc:10";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

HTML Code
<!--








Hi, I see you're viewing the source of this page.  It's sooo liek, nerdy, ya know?!
Well, enjoy!  Yool luv teh codez.




















































-->


Strict Standards: Only variables should be passed by reference in /var/www/endlessparadigm/forum/inc/highlighter.php(1007) : regexp code on line 19

Strict Standards: Only variables should be passed by reference in /var/www/endlessparadigm/forum/inc/highlighter.php(1007) : regexp code on line 5

PHP Code:
<html>
<head>
<title>Calcy</title>
</head>
<body>
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<fieldseT>
<legend>Numbers</legend>
    <p>Input one : 
      <input type="text" name="input"><? echo $input; ?>
      <br /> 
      <br />
    Input 2 : 
    <input type="text" name="input2">
  </p>
    <p>Select which you would like to do:
      <SELECT name="mode" size=1>
        <OPTION selected value="add"> Addition </OPTION>
        <OPTION value="minus"> Minus </OPTION>
        <OPTION value="multiply"> Multiply </OPTION>
        <OPTION value="square"> Square route of input one </OPTION>
      </SELECT>
<br />
      <input name="submit" type="submit" value="submit">
        </p>
        </fieldset>
</form>
<?php
if(isset($_POST['submit'])){
    
$input = $_POST['input'];
$input2 = $_POST['input2'];

    if(empty($input) || empty($input2)){
        echo 'You have not provided all the information';
    } elseif(!ereg ("([0-9])", $input)){
        echo 'Please enter Numbers only';
    } elseif( $HTTP_POST_VARS['mode'] === 'minus'){
        echo $input - $input2;
    } elseif( $HTTP_POST_VARS['mode'] === 'add') {
        echo $input + $input2;
    } elseif( $HTTP_POST_VARS['mode'] === 'multiply') {
        echo $input * $input2;
    } elseif( $HTTP_POST_VARS['mode'] === 'square') {
        echo sqrt($input);
    } else {
        echo 'You have not given the correct information';
    }
}
?>


</body>
</html>


By the way not mine

Pages: 1 2 3
Reference URL's