Jump to content

Passing variable to URL


ichversuchte

Recommended Posts

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">&nbsp;<?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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.