ichversuchte Posted January 15, 2007 Share Posted January 15, 2007 Below there is a table that has a image that has on click event that opens a amorizationcalculator. I am trying to pass the $price from a queried row. The data is there, i echoed it. But it will not pass to the URL, any ideas?[code]<table width="555" height="144" border="0"> <tr> <td width="177" rowspan="3"><?php print "<img src=\"image.php?iid=$iid\" width='213' height='153'>"; ?></td> <td colspan="2"> <?php print $title ?></td> </tr> <tr> <td width="73"><div align="center"><img src="images/car.gif" width="29" height="9"></div></td> <td> Only <?php print $mileage ?> miles</td> </tr> <tr> <td width="73"><div align="center"><A ONCLICK="window.self.open('AmorizationCalc.php?price=<?php $price ?>','','width=550,height=400,screenX=400,screenY=400,top=400,left=400,scrollbars=yes');"=""><img src="images/tigracalc.gif" width="15" height="13" alt="Calculate Payment" alt="Calculate Payment" title="Calculate Payment"></div></A></td> <td>Asking <?php print convert_to_money($price) ?></td> </tr></table>[/code] Link to comment https://forums.phpfreaks.com/topic/34190-passing-variable-to-url/ Share on other sites More sharing options...
trq Posted January 15, 2007 Share Posted January 15, 2007 [code]<?php echo $price ?>[/code] Link to comment https://forums.phpfreaks.com/topic/34190-passing-variable-to-url/#findComment-160864 Share on other sites More sharing options...
bqallover Posted January 15, 2007 Share Posted January 15, 2007 Instead of [code]<?php $price ?>[/code]try [code]<?php echo $price; ?> or<?=$price ?>[/code] Link to comment https://forums.phpfreaks.com/topic/34190-passing-variable-to-url/#findComment-160865 Share on other sites More sharing options...
ichversuchte Posted January 15, 2007 Author Share Posted January 15, 2007 Thank you, This worked great!<?php echo $price; ?> Link to comment https://forums.phpfreaks.com/topic/34190-passing-variable-to-url/#findComment-160866 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.