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

 

adding carriage return

 
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 >> adding carriage return
Page: [1]
 
chadb

 

Posts: 501
From: Kansas
Status: offline

 
adding carriage return - 6/23/2009 14:31:57   
I have a two part question, this is my current code:
<%=FP_FieldVal(fp_rs,"Emp1") & FP_FieldVal(fp_rs,"Emp2") & FP_FieldVal(fp_rs,"Emp3")%>

1) how can I put a return after each fp_FieldVal?
2) sometimes Emp2 and Emp3 are blank. Is there a way I can then ot pur a return and only display emp1?

Thanks
Chad
TexasWebDevelopers

 

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

 
RE: adding carriage return - 6/23/2009 15:37:52   
First, you can divide them up to play with:
<%=FP_FieldVal(fp_rs,"Emp1")%>
<%=FP_FieldVal(fp_rs,"Emp2")%>
<%=FP_FieldVal(fp_rs,"Emp3")%>

You can add a line break after each one I suppose:

<%=FP_FieldVal(fp_rs,"Emp1")%> <br />
<%=FP_FieldVal(fp_rs,"Emp2")%> <br />
<%=FP_FieldVal(fp_rs,"Emp3")%> <br />

You can show them only if they are not blank like this (in code english " If EMP1 is blank then show nothing else show EMP1 and a line break") :

<% IF FP_FieldVal(fp_rs,"Emp1") ="" Then%> <%else%> <%=FP_FieldVal(fp_rs,"Emp1")%> <br /> <%end if%>

_____________________________

:)

Follow us on TWITTER

(in reply to chadb)
Page:   [1]

All Forums >> Web Development >> ASP, PHP, and Database >> adding carriage return
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