I am having problems with some simple scripts:
PHP:
<html>
<body>
<?php
$skill = $fletching;
if (empty($user)); { ?>
Welcome to ParsaAkbaris calculator, Parsa Akbari ftw!
<form action="runescapefletching.php" method="get">
<input type="text" name="user" size="1">
<input type="submit" value="Send">
<?php
}
else {
$order = array( "Fletching",);
$user = $_POST['user'];
$get = file_get_contents("http://hiscore.runescape.com/index_lite.ws?player=$user");
$get = explode("\n", $get);
$i = 0;
foreach ($order as $key => $value) {
$value = strtolower($value);
$temp = explode(",", $get[$i]);
$temp = array("rank" => $temp[0], "level" => $temp[1], "exp" => $temp[2]);
$stats[$value] = $temp;
$eval = "\$$value = array(\$temp[\"rank\"], \$temp[\"level\"], \$temp[\"exp\"]);";
eval($eval);
$i++;
}
if ($fletching[2] < 0){
echo 'Your $skill is not on the hiscores, enter the amount of xp you have in $skill';
?>
<form action="runescapefletching.php" method="get">
The amount of xp:<input type="text" name="xp" size="1">
Also your RuneScape username:<input type="text" name="user" size="1">
<input type="submit" value="Send">
<?php
}
else{
echo ' <insert command here> ' ;
}
}
?>
</body>
</html>