i know this may sound newbie, buts its confusing me like crazy so i thought if i should see if i could get some1 else's opinion on my little problem...
as im including a .inc file called dataOutputTable_1.inc i store it in a variable say... $output, at which point i echo out the $output and its should.. display as it would before i threw it into the .inc file right?? WRONG. =)
at the end of the .inc file... in the output only, its showing up with the number 1...
here's my php section..
Code: Select all
$output = include("dataOutputTable_1.inc");
echo $output;
now my .inc file is a fair bit bigger to throw up here... so ill throw up a sample..
inc section...
Code: Select all
<table>
<tr>
<td>Number of ingredients: </td>
<td>
<input type='text' name='numOfIngredients' value="<?php echo $ingredientNum?>" readonly='readonly' />
</td>
</tr>
</table>
Are the above details correct?
<br><input type='submit' value='Correct'></form>It is at the end of my form tag, that im getting the output of 1.
some1 please help? hahaha
cheers guys
-Weasel