Using PHP vars in an echo statement.?

und3r53v3n

New member
echo '<td> <input name="check'$i+2'" type="checkbox" value=""';

is my statement, this one errors. What I need is the counter var $i plus 2 to be inserted into the php as a number. So the desired output is in this case:

<td> <input name="check3'" type="checkbox" value=""

if $i = 1
 
Back
Top