> Forums > PHP

E

Eurorechner

phpinfo Mi., 18. Oktober, 2006 um 23:39 #1

[php:1]<?

if($calc == "ats") { $euro = ($cats/13.76); $ats = $ats; }
if($calc == "eu") { $ats = ($cEU*13.76); $euro = $euro; }
if($reset == "ats") { $euro = "0"; $ats = $ats; }
if($reset == "eu") { $ats = "0"; $euro = $euro; }
?>
<html>
<title>Euro Calculator!</title>
<body bgcolor=black text=white link=silver alin=silver vlink=silver>
<head>
<style>
td { font-family: Verdana; font-size: 10pt}
input.field { border-width:1; border-color:gray; border-style:solid;
background-color:#313131; color:silver; WIDTH: 90px; height: 17px; font-size: 10}
input.button { border-width:1; border-color:gray; border-style:solid;
background-color:#313131; color:silver; font-size: 10; WIDTH: 50px; height: 20px;}
</style>
</head>
<center>
<font face=tahoma size=1>Euro Calculator v1.0b by Electron<b>!</b><br><br><br><br>
<form action=eurocalc.php?calc=ats method=post>
<table border=0>
<td><input class=field name="cats" value=<? if($cats == "") { echo "0 "; } else { echo "$cats "; } ?>
</td><td width="10%">ats</td>
<td width="10%"><center>--></td><td width="50%"><? echo round($euro, 2); ?> Euro</td>
<input name="cEU" value=<? if($cEU == "") { echo 0; } else { echo $cEU; } ?> type=hidden>
<input name="ats" value="<? if($ats == "") { echo 0; } else { echo $ats; } ?>" type=hidden>
</table>
<table border=0>
<td><input type=submit value=calc! class=button></td>
</form>
<form action=eurocalc.php?reset=ats method=post>
<input name="ats" value="<? if($ats == "") { echo 0; } else { echo $ats; } ?>" type=hidden>
<input name="cEU" value=<? if($cEU == "") { echo 0; } else { echo $cEU; } ?> type=hidden>
<td><input type=submit value=reset! class=button></td>
</form>
</table>
<br><br><br><table border=0>
<form action=eurocalc.php?calc=eu method=post>
<td><input class=field name="cEU" value=<? if($cEU == "") { echo "0 "; } else { echo "$cEU "; } ?>>
<td width="10%">Euro</td></td><td width="10%"><center>--></td><td width="50%"><? echo round($ats ,2); ?> ats</td>
<input name=cats value=<? if($cats == "") { echo 0; } else { echo $cats; } ?> type=hidden>
<input name=euro value="<? if($euro == "") { echo 0; } else { echo $euro; } ?>" type=hidden>
</table>
<table border=0>
<td><input type=submit value=calc! class=button></td>
</form>
<form action=eurocalc.php?reset=eu method=post>
<input name=cats value=<? if($cats == "") { echo 0; } else { echo $cats; } ?> type=hidden>
<input name=euro value="<? echo $euro; ?>" type=hidden>
<td><input type=submit value=reset! class=button></td>
</form>
</table><p>
<hr width=50% color=gray noshade>
</body>
</html>[/php:1]



C&M distanziert sich konkret und ausdrücklich vom Inhalt dieses Postings.
Der Ersteller des Postings haftet für seine Äußerungen.
Inhalte, die nicht den Forumsregeln entsprechen sind bitte vom Leser zu melden ...

aleX Do., 19. Oktober, 2006 um 16:45 #2

Mal sollte halt die GET und POST Übertragungen filtern damit man keinen Schadcode einfügen kann *gg*

[php:1]<?
$calc = strip_tags($calc);
$reset = strip_tags($reset);
$ats = strip_tags($ats);
$cEU = strip_tags($cEU);
$cats = strip_tags($cats);
?>[/php:1]

aleX Do., 19. Oktober, 2006 um 17:45 #3

> Forums > PHP

Du hast bereits für diesen Post angestimmt...

;-)



Logo https://t.ress.at/E2LhH/




Top