0

I have written a program using HTML and JavaScript that calculates the price of a sliding door for a metal roofing companies website. When the user puts in values such as height and width the numbers are ran through a script and it outputs results such as price, and qty of tools needed. I want to create a page that displays these results neatly and can be printed by the user. I have tries using PHP but this has proven difficult. What is the easiest way to make this work?

<tr>
 <td>Track</td>
 <td>' .$trackResult. '&acute;<br />' .$trackResultOne. '&acute;<br />' .$trackResultTwo. '&acute;</td>
</tr>

This is where I am having trouble, this table is being echoed in a PHP page. Sometimes $trackResultOne and Two do not have values and I do not want them to echo. For now the table is simply showing like this...

Track - 1 - 10' <

4

2 に答える 2