Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.