OutFront Forums
     Home    Register     Search      Help      Login    

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

Sponsors
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

 

If Statement in DRW

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP, PHP, and Database >> If Statement in DRW
Page: [1]
 
steveg

 

Posts: 309
Joined: 10/20/2004
Status: offline

 
If Statement in DRW - 8/3/2009 12:06:29   
I have an IF statement in my DRW in which I would like to include another field from the current DRW.
<tr>
<td><font size="1" face="Verdana">
<%=FP_FieldVal(fp_rs,"DRUG NAME")%></font> </td>
<td><font size="1" face="Verdana">
<%=FP_FieldVal(fp_rs,"CO-PAY TIER")%></font> </td>
<td><font size="1" face="Verdana">
<%=FP_FieldVal(fp_rs,"DISPENSING EDITS")%></font> </td>
<td><font size="1" face="Verdana">
<%IF trim(FP_Field(fp_rs,"Medtipstercom")&"") > "" THEN%>  <a target="_blank" href="http://www.medtipster.com/search2.php?orig_drug_name=Drug Name"><img border="0" src="logo_medtipster.jpg" align="absbottom"><%END IF%></font> </td>
<td><font size="1" face="Verdana">
<%=FP_FieldVal(fp_rs,"THERAPEUTIC CLASS")%></font> </td>
<td><font size="1" face="Verdana">
<%=FP_FieldVal(fp_rs,"THERAPEUTIC CLASS 2")%></font> </td>
</tr>

I would like to have the Drug Name text in red replaced by the field Drug Name shown earlier in the DRW. I want to take people to the site with the drug name already populated?

Thanks
Steve
TexasWebDevelopers

 

Posts: 722
Joined: 2/22/2002
From: Dallas, TX
Status: offline

 
RE: If Statement in DRW - 8/3/2009 17:22:05   
<a target="_blank" href="http://www.medtipster.com/search2.php?orig_drug_name=<%=FP_FieldVal(fp_rs,"DRUG NAME")%>



_____________________________

:)

Follow us on TWITTER

(in reply to steveg)
steveg

 

Posts: 309
Joined: 10/20/2004
Status: offline

 
RE: If Statement in DRW - 8/14/2009 4:06:02   
I am really close but there is something that I can't quite spot.


<%IF trim(FP_Field(fp_rs,"Medtipstercom")&"") >"" THEN%><a target="_blank" href="http://www.medtipster.com/search2.php?orig_drug_name=<%=FP_FieldVal(fp_rs,"DRUG NAME")%><img border="0" src="logo_medtipster.jpg" align="absbottom"> <%END IF%></font> </td>


The result I get is:

http://www.medtipster.com/search2.php?orig_drug_name=ACEBUTOLOL<img border=

I appear to have an imbalance of <> but I have tried adjusting them without success. Can anybody spot anything?

Thanks

Steve

(in reply to TexasWebDevelopers)
steveg

 

Posts: 309
Joined: 10/20/2004
Status: offline

 
RE: If Statement in DRW - 8/14/2009 5:38:12   
Hi again

With a litle more tinkering I now have this which seems to work:

<%IF trim(FP_Field(fp_rs,"Medtipstercom")&"") >"" THEN%><a target="_blank" href="http://www.medtipster.com/search2.php?orig_drug_name=<%=FP_FieldVal(fp_rs,"DRUG NAME")%>"><img border="0" src="logo_medtipster.jpg" align="absbottom">
<%END IF%></font> </td>

However, I get the image in the cell and an underlined blank space. If I remove the space then I do not get cell demarcation lines apart from where there is an image link. Any ideas on how I might get around this?

Steve

(in reply to steveg)
TexasWebDevelopers

 

Posts: 722
Joined: 2/22/2002
From: Dallas, TX
Status: offline

 
RE: If Statement in DRW - 8/14/2009 10:31:15   
apply the style - text-decoration: none; - to the <a href>

_____________________________

:)

Follow us on TWITTER

(in reply to steveg)
Page:   [1]

All Forums >> Web Development >> ASP, PHP, and Database >> If Statement in DRW
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts