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>
|
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