OK, I'm lost... don't know if this is easy and I'm missing it, or it can't be done, but this is my favorite place to ask...
I have a table data cell that I would like to have as the submit value (link) in a form in a php script.
Problem is that I have a lot that goes into building that <td...
This is how the cell is created...
(actually there are several of them displayed and each needs to be a form with a separate link)
<td align='center' width='180' height='100' background="images/<?php print $td_bg[$x];?>.png">
<b><font color="#E0FFFF"><?php print $sub_count[$x]."-".$y;?></font></b><br />
<b><font size="+1" color="#FFFFFF"><?php print $sub_count[$x]*$y;?> Subscribers</font></b><br>
<?php
$z=0;
while ($sub_count[$x]*$y>$sub_count[$z]){
$price = round(($sub_count[$x]*$y*($init_sub_cost-$disc_step[$z])),0);
++$z;
}
?>
<b><font size="+2" color="#1E90FF">$<?php print number_format($price,0); ?></font></b>
</td>
and here is the form
<form name="pack_sel" action="order.php" method="POST">
<input type="hidden" name="subs" value="<?php print $sub_count[$x];?>">
<input type="hidden" name="ars" value="<?php print $y;?>">
<input type="submit" name="view" value="Select">
</form>
Is there a way to make that <td ... /td> the value in the submit?
Thanks in advance for your response
Douglas