Just another question.. Its probably easier to see it in action..
http://www.canarysearch.net/cgi-bin/Flights/db.cgi?db=default&uid=default&view_records=1&ID=*
I want it when some1 clicks through on Reserve Flight it brings up that associated record and not always the first one... I need to get the ID value somewhere in <a href="$long_url">Reserve Flight!</a> so as it links to that..
# <-- Start of short display formatting -- >
print qq|
<table border="0" width="100%" cellspacing="0" cellpadding="1" align="left">
<tr>
<td width="6%"><$font>$rec{'Ref'}</$font></td>
<td width="11%"><$font>$rec{'AirportDeparture'}</$font></td>
<td width="3%"><$font>--></$font></td>
<td width="11%"><$font>$rec{'AirportDestination'}</$font></td>
<td width="8%"><$font>$rec{'DepDay'}-$rec{'DepMonth'}-$rec{'DepYear'}</$font></td>
<td width="8%"><$font>$rec{'Duration'}</$font></td>
<td width="6%"><$font>$rec{'Time'}</$font></td>
<td width="12%"><$font>$rec{'Price'}</$font></td>
<td width="15%"><$font>$rec{'TravelAgent'}</$font></td>
<td width="20%"><$font><a href="$long_url">Reserve Flight!</a>|;if($rec{'Deal'} eq 'Last Minute') {print qq| <$fontblue>Last Minute</$font> |;} elsif($rec{'Deal'} eq 'Special Offer') {print qq| <$fontred>Special Offer</font> |;}print qq|</$font></td>
</tr>
</table>
|;
Thanks..... Justin
http://www.canarysearch.net/cgi-bin/Flights/db.cgi?db=default&uid=default&view_records=1&ID=*
I want it when some1 clicks through on Reserve Flight it brings up that associated record and not always the first one... I need to get the ID value somewhere in <a href="$long_url">Reserve Flight!</a> so as it links to that..
# <-- Start of short display formatting -- >
print qq|
<table border="0" width="100%" cellspacing="0" cellpadding="1" align="left">
<tr>
<td width="6%"><$font>$rec{'Ref'}</$font></td>
<td width="11%"><$font>$rec{'AirportDeparture'}</$font></td>
<td width="3%"><$font>--></$font></td>
<td width="11%"><$font>$rec{'AirportDestination'}</$font></td>
<td width="8%"><$font>$rec{'DepDay'}-$rec{'DepMonth'}-$rec{'DepYear'}</$font></td>
<td width="8%"><$font>$rec{'Duration'}</$font></td>
<td width="6%"><$font>$rec{'Time'}</$font></td>
<td width="12%"><$font>$rec{'Price'}</$font></td>
<td width="15%"><$font>$rec{'TravelAgent'}</$font></td>
<td width="20%"><$font><a href="$long_url">Reserve Flight!</a>|;if($rec{'Deal'} eq 'Last Minute') {print qq| <$fontblue>Last Minute</$font> |;} elsif($rec{'Deal'} eq 'Special Offer') {print qq| <$fontred>Special Offer</font> |;}print qq|</$font></td>
</tr>
</table>
|;
Thanks..... Justin