Okay, I kinda have to vent here for just one moment, STUPID PHP AND IT'S STUPID LITTLE ISSUES.
So I found out what the problem was. Turns out that
CODE
while ($weightnum > 0);
{
echo "<tr>";
echo '<td><input name="wname"' . $appendval . ' type="text" id="wname" value="Catagorie Name"></td>';
echo '<td><input name="wper"' . $appendval . ' type="text" id="wper" value="Percent Value"></td>';
echo "</tr>";
$appendval = $apendval + 1;
$weightnum = $weightnum - 1;
}
won't work however:
CODE
while ( $weightnum > 0 ){
echo "<tr>";
echo '<td><input name="wname"' . $appendval . ' type="text" id="wname" value="Catagorie Name"></td>';
echo '<td><input name="wper"' . $appendval . ' type="text" id="wper" value="Percent Value"></td>';
echo "</tr>";
$appendval = $apendval + 1;
$weightnum = $weightnum - 1;
}
That does... can you spot the diffrence? Look at the {.
Oh but thanks for the tutorial link, I just might have to use it. One rep point.
Reply