I have this code and it outputs buttons that goes down. I want them to go horizontally. please help. T_T
<?php
$var=1;
while($row=mysql_fetch_array($che… {
?>
< action='' method='post'>
<input type='submit' name='view' value="<?php echo @$var ?>"/>
<input name="workId" type="hidden" value="<?php echo $row['workId']; ?>" />
</form>
<?php $var++; } ?>
I don't want to put it inside table and loop it as a <td>
i just want it to loop and follow the size of the container. :(
if i put the <form></form> outside the loop, only the last value would be stored on the values of the buttons :(
call me a noob or whatever. all I want is to learn. T_T