Ok, so I want to load results out of a form in the same page. This shouldn't be a problem.
Trying to get it into same page as where the form is, I think the code will make clear what I want to have done.
Have a little experience with PHP, and trying to learn by doing stuff like this. Expect its something really simple.
<HTML>
<HEAD>
<title>Pet EXP Calculator</title>
<style type="text/css">
.Note {
font-size: xx-small;
}
</style>
</HEAD>
<body>
<Table border="0">
<?php
if(isset($_POST['submit']))
{
$PetLVL = $_POST['PetLVL'];
$PetLoyal = $_POST['PetLoya'];
$PetEXP = $_POST['PetEXP'];
$MobLVL = $_POST['MobLVL'];
echo ($PetLVL);
}
?>
<form action="<?=$_SERVER['PHP_SELF']?>">
<tr height="20">
<TD width="100">
Pet Level:</td><td width="70"><input name="PetLVL" type='text' id="PetLVL" size="3" maxlength="3"></input></td>
<td width="100">
Pet Loyalty:</td><td> <select name="PeyLoyal" id="PetLoyal">
<option>0-50</option>
<option>51-150</option>
<option>151-500
<option>501-999</option></option></select></td><tr>
<td>Current EXP Pet:</td> <td><input name="PetEXP" type='text' id="PetEXP" size="8" maxlength="8"></input>
</td>
<td class="Note">
*input the EXP your pet has in stats screen.
</td>
</tr>
</tr>
<tr height="20">
<td width="100">Monster Level:</td><TD><input name="MobLVL" type='text' id="MobLVL" size="3" maxlength="3"></input></td>
<td class="note">*Add ? monsters as level 150</td>
</tr>
<tr>
<td>
<input name="submit" type="submit" value="submit">
</td>
</tr>
</form>
</table>
</body>
</HTML>