Creating next lines in html

My php contact form is working properly but whenever my client receives an email from the form, the email looks very disorganized because all of the contact information that the user has submittted, comes in one line.
Here is my php code
                $To = "fakemail";
                $Subject = "fake message";
                $From = "fake user";
                $Message = "Name: " . $Name. "Email " . $Email. "Phone" . $Phone. "Options" . $Options. "Comments"  . $Comments;
                $Headers = "From: ". $from . "<" . $to. ">\r\n";  
                $Headers .= "Reply-To: " . $email_text . "\r\n"; 
                $Headers .= "Return-path: ". $email_text;
                $result = mail($To, $Subject, $Message, $Headers);
I would like to add the "\n" after each  .$Name,  .$Email, etc variable so when my client receives the message it will come out like
Name: Bob
Email: [email protected]
Phone: 123345
etc....
Thanks in advanced

More than line breaks, a table would look best. Here's the code:
    $mailBody = '<table border="1">';
    $mailBody .= '<tr>';
    $mailBody .= '<td>Name :</td><td>'.$fullName.'</td>';
    $mailBody .= '</tr><tr>';
    $mailBody .= '<td>Title :</td><td>'.$title.'</td>';
    $mailBody .= '</tr><tr>';
    $mailBody .= '<td>Company :</td><td>'.$company.'</td>';
    $mailBody .= '</tr><tr>';
    $mailBody .= '<td>City :</td><td>'.$city.'</td>';
    $mailBody .= '</tr><tr>';
    $mailBody .= '<td>State :</td><td>'.$state.'</td>';
    $mailBody .= '</tr><tr>';
    $mailBody .= '<td>Postal Code :</td><td>'.$postal.'</td>';
    $mailBody .= '</tr><tr>';
    $mailBody .= '<td>Country :</td><td>'.$country.'</td>';
    $mailBody .= '</tr><tr>';
    $mailBody .= '<td>Phone Number :</td><td>'.$phoneNo.'</td>';
    $mailBody .= '</tr><tr>';
    $mailBody .= '<td>E-Mail :</td><td>'.$eMail.'</td>';
    $mailBody .= '</tr><tr>';
    $mailBody .= '<td>Message :</td><td>'.$message.'</td>';
    $mailBody .= '</tr>';
    $mailBody .= '</table>';

Similar Messages

  • Create accessible pdf from html page

    Hello,
    I am trying to create a 508 compliant Pdf from a simple HTML page using the HTML to Pdf feature in Livecycle ES4 server. I was able to configure the service to generate tabbed Pdf, but the created Pdf has multiple accessibility issues.
    Some of the issues encountered are:  incorrect tab order,  some links are not tabbable while others are,  link text is being read “Blank”,  some text is skipped while tabbing,  missing alt text for images,  page being rendered in the responsive(mobile) view,  etc.
    I have tried both the available approaches, of 1) providing a URL to create the PDF, and 2) to send the html document as a zipped file, with same results.
    Attached is a sample PDF generated from a simple HTML page I created for demo.
    My questions are:
    Is it possible to generate 508 compliant (accessible) Pdf documents using Html to Pdf service from Pdf Generator? If yes, which settings might I be missing?
    Is there any other service provided by Adobe Livecycle Server that can generate 508 compliant Pdf documents from a 508 compliant HTML page?
    Your help is much appreciated.
    Thanks,
    Anup

    I don't think it's possible to do this using a standard JavaScript script in Acrobat, since the newDoc function doesn't work with URLs.
    The only option I can think of is to use an external automator that will call the Create PDF From Web Page dialog, paste the address from a file, and after the PDF file is created will continue to the next line.
    I might be able to create such a tool for you. If you're interested, contact me by email (click my username for the address) or PM.

  • Extraneous new lines in HTML output of JSP page

    Hi
    I have bunch of JSP fragments that I use while creating a composite view..Each one of them has server side comments that I use to document their functionality...
    However when final JSP is generated and when I look at the HTML source (which I often need to) it is "chunked" - there is a about 50 blank lines inserted at the top of the page and then on each fragment about 10 or more blank lines.... Initially, I thought that the server side comments created new lines but after removing the comments and redeploying the problem still persists......
    Is there a way to prevent these new lines from being generated? Especially the ones at the start of the document....
    Thanks

    That is not the only way. In your server's default web.xml, there should be a servlet definition for JSPs, something like this:
        <servlet>
            <servlet-name>jsp</servlet-name>
            <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
            <init-param>
                <param-name>fork</param-name>
                <param-value>false</param-value>
            </init-param>
            <load-on-startup>3</load-on-startup>
        </servlet>There is a possible init-param called trimSpaces which will do the job:
            <init-param>
                <param-name>trimSpaces</param-name>
                <param-value>true</param-value>
            </init-param>This may be only a Tomcat 5 feature, however.

  • How can I find the words which spans across end of line to next line in pdf ?

    I am using Acrobat Adobe X Pro version for our form development and maintanence. I am writting a Acrobat JAVA batch script which reads through all the words and execute spell check and reports the mispelled words in a excel sheet. Since I am running this script in batch mode for more than 1000 pdfs - I am getting many words joined together. When I looked in to those pdfs all such words are looking okay because it is appearing in end of right margin and the next word is in the next line. Since there was no space between them it was extracted as a single word. Hence the failure.
    I used wordf = this.getPageNthWordQuads(i,j)  to get the word begin and end coordinates. when I closely observe the values are creating a rectangle and that doesnt span across lines. I got the coordinates for the regular word and the word which span acoross two lines. both of the coordinates are same.
    I think I am screwed - I have 8000 such words and no clue of how to get rid of them from the actual misspelled words.
    please help. let me know if any class /method if I call will give me the end of line or do I need to go to next layer to find this split.
    the addnot is somehow marking the words using this coordinates - please hellp me understand how this works. Thanks.
    // for all pages
    for (var i = 0; i < this.numPages; i++ )
    // For all the words
    pg += 1;
    numWords = this.getPageNumWords(i);
    for ( j = 0; j < numWords; j++)
    //get the spell check 
    ckWord = spell.checkWord(this.getPageNthWord(i,j))
    if ( ckWord != null )
    jn=0
    ml=0
    // if mispelled word found.
    wordf = this.getPageNthWordQuads(i,j)
    swordf = wordf.toString()
    var st = swordf.split(",")
    var diffx0 = parseInt(st[0])-8
    var diffx1 = parseInt(st[1])-8
    var diffx2 = parseInt(st[2])-8
    var diffx3 = parseInt(st[3])-8
    var diffx4 = parseInt(st[4])-8
    var diffx5 = parseInt(st[5])-8
    var diffx6 = parseInt(st[6])-8
    var diffx7 = parseInt(st[7])-8
    if (cWord == csword)
    jn = 1
    if ( st[1] != st[3] )
    ml = 1
    //dataLine += "\r\n write "
    else
    ml=2
    dataLine += "\r\n"+this.documentFileName
    + "\t" + this.getPageNthWord(i,j)
    + "\t" + pg
    + "\t" + j
    + "\t" + ml
    + "\t" + jn
    + "\t st[0] " + diffx0 + "\t st[1] " + diffx1 + "\t st[2] " + diffx2 + "\t st[3] " + diffx3 
    + "\t st[4] " + diffx4 + "\t st[5] " + diffx5 + "\t st[6] " + diffx6 + "\t st[7] " + diffx7 
    ck=1

    If Acrobat is reading each word part as separate words, you have a problem.
    The way I approached it in some of my tools was to check if a word ends
    with a hyphen, and if so, to check if it's the last on the line. If both
    conditions are true, combine with the next word on the next line. This is
    not fool proof, of course, as there are documents with columns are other
    structural elements that prevent this from working. Better than nothing,
    though...
    However, it is also possible that Acrobat does see both parts as parts of
    the same word. In that case, getPageNthWordQuads() will return multiple
    quads arrays. As you know, that method returns an array of quad arrays.
    There's usually only one, but in principle there could be more... Something
    to check before giving up.

  • Pasting in JTextPane adds the text in the next line not the cursor positon

    Hi,
    I have a problem with pasting the text in a JTextPane. The content type is text/html and the document is HTMLDocument. When I paste the text, it goes to the next line instead of inserting at the current cursor position. The problem is when pasting, the html writer adds a paragraph tag with the selected text. Can any one please help me with this issue for pasting a selected text in the position where I want, without loosing the character attributes and other html tags, but only the paragaraph tags?
    Thanks
    siju

    Hi Tariq,
    If you are specifying some .prt files(printer definition files) in the desformat, please examine them if you have set the width and height to proper values.
    Otherwise look at $ORACLE_HOME/reports/printers/dflt.prt (default file) and see if the width and height are set to proper values.
    Thanks,
    Siva B

  • How do I create a number line in iBook? I need to create a Line Plot, which includes a number line and X's above it. Thanks!

    I am trying to create a Line Plot using iBook. This includes a number line with X's above the numbers. Any suggestions would be appreciated.
    Thank you!

    Hi, and welcome to Apple Support Communities.
    Which version of MathType are you using?
    Which exact model iBook do you have? You can choose from this list:
    http://www.everymac.com/systems/apple/ibook/index-ibook.html
    Which version of the operating system is the iBook running?
    Or are you talking about iBooks Author?

  • Create multiple line item from one line item in BizTalk mapping

    Hi,
    In one of our new requirement we need to create 3 line items for every line item we are receiving with same value but in the below format.
    Sample Input:
    <EmpId>1234</EmpId><Name>ABCD></Name><Dept>YYY</Dept><Year>2014</Year><Desc1>D1</Desc1><Desc2>D2</Desc2><Desc3>D3</Desc3><Valid>Yes</Valid>
    Sample Output in Flatfile:
    1234,ABCD,,,D1,Yes
    1234,ABCD,YYY,,D2,Yes
    1234,ABCD,YYY,2014,D3,Yes
    Can you Pls help me in creating the mapping in above format.
    Thanks in advance,
    Regards,
    Elango
    Chennai.
    Mark As Answer or Vote As Helpful if My Reply Does.

    Elango,
    Before I explain about the solution, make sure when you give inputs/requirement in forums for us to help you, pay attention.
    The input instance you have shown
    Doesn’t have a root element
    Has a typo - <Name>ABCD></Name> -Element has invalid “>” character.
    This makes us to spend more time in cleansing your input and then find out solution.
    We are here to help you, so help us to help you better.
    Anyway, coming to the solution
    You have to create map with a structure similar to the below shown image:
    Here destination schema is a flat file schema with comma-delimited fields.
    If you look into the destination schema, it look similar to your input schema, but there is just one “Desc” field instead of “Desc1”, “Desc2”, “Desc3” in your source schema. In destination, the
    record has to repeat with same values for rest of the fields. And for “Desc” in destination schema will have corresponding index value of “Desc1” or “Desc2” or “Desc3” from source. i.e. first node of destination will have value of “Desc1” from source to “Desc”
    field in destination, second node of destination will have value of “Desc2” from source to “Desc” field in destination and third node of destination will have value of “Desc3” from source to “Desc” field in destination.
    I use XSLT in the map, with recursive template which will repeat for 3 times. I have given comment in the XSLT for your benefit.
    <?xml version="1.0" encoding="UTF-16"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" exclude-result-prefixes="msxsl var" version="1.0">
    <xsl:output omit-xml-declaration="yes" method="xml" version="1.0" />
    <xsl:template match="/">
    <xsl:apply-templates select="/Root" />
    </xsl:template>
    <xsl:template match="/Root">
    <Record>
    <!--Call the template with index and counter of 3. There times as you wanted for every item-->
    <xsl:call-template name="LintItemTemp">
    <xsl:with-param name="i">1</xsl:with-param>
    <xsl:with-param name="count">3</xsl:with-param>
    </xsl:call-template>
    </Record>
    </xsl:template>
    <xsl:template name="LintItemTemp">
    <xsl:param name="i" />
    <xsl:param name="count" />
    <Details>
    <EmpId>
    <xsl:value-of select="EmpId/text()" />
    </EmpId>
    <Name>
    <xsl:value-of select="Name/text()" />
    </Name>
    <Dept>
    <xsl:value-of select="Dept/text()" />
    </Dept>
    <Year>
    <xsl:value-of select="Year/text()" />
    </Year>
    <!--as in your output instance, Lineitem1 will have value of Desc1-->
    <xsl:if test ="($i =1)">
    <Desc>
    <xsl:value-of select="Desc1/text()" />
    </Desc>
    </xsl:if>
    <!--as in your output instance, Lineitem2 will have value of Desc3-->
    <xsl:if test ="($i =2)">
    <Desc>
    <xsl:value-of select="Desc2/text()" />
    </Desc>
    </xsl:if>
    <!--as in your output instance, Lineitem3 will have value of Desc3-->
    <xsl:if test ="($i =3)">
    <Desc>
    <xsl:value-of select="Desc3/text()" />
    </Desc>
    </xsl:if>
    <Valid>
    <xsl:value-of select="Valid/text()" />
    </Valid>
    <xsl:value-of select="./text()" />
    </Details>
    <!--Recursive template, i.e. calling the template again for 3 times as your requirement-->
    <xsl:if test="$i &lt; $count">
    <xsl:call-template name="LintItemTemp">
    <xsl:with-param name="i">
    <xsl:value-of select="$i + 1"/>
    </xsl:with-param>
    <xsl:with-param name="count">
    <xsl:value-of select="$count"/>
    </xsl:with-param>
    </xsl:call-template>
    </xsl:if>
    </xsl:template>
    </xsl:stylesheet>
    So the input and output will look like the below:
    You can change the schema/XSLT and its corresponding namespaces as you want.
    When the above shown output is send to a custom-pipeline with flat file assembler in send port will output the above shown output to the flat-file structure as you wanted. Again, I repeat you
    to use flat-file file schema with comma-delimited fields as the destination schema in the above shown map for you to get the flat-file output as you needed.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Trying to set a hyperlink when text wraps to next line

    I'm trying to set a hyperlink in InDesign. The URL text wraps to the next line. One time this worked fine and the link was correct. For two other instances, it did not work. When I checked the link in the PDF file, it only "grabbed" the first portion of the hyperlink address. Anything after the first "/" was lost. Is there a way to make sure the entire URL address gets included in the hyperlink? Thank you!

    Acrobat has trouble autorecognizing URLs that break across lines. You ned to create a "real" hyperlink from the text in ID, then include them in the export. If you don't know how to do that, see the Help.

  • Creating command line for creating a FR pdf file

    I need to create a command line that takes a FR generate a PDF file and saves it in a specific folder.
    The question is, is it possible to create command lines in HFM and does some have an example ?
    Thank's

    Hello,
    To generate an hyperlink in a HTML or PDF output , use the property hyperlink
    http://docs.oracle.com/cd/B14099_17/bi.1012/b13895/orbr_howto.htm#i1058897
    Regards

  • How to implement next line

    hi
    i ahve a problem
    in main window there are line items outputed in rows and columns seperated by vertical lines and horizontal lines
    now my requriment is that under a column say column3 i want an extra line to display some more data in that column only
    how to do it
    mean for all columns 1 column2 there will be n othing corresponding to that particlar row only in column3 data will be tehre rest all columns that data will be blank...
    my q
    wht is command to give next line under for that particlual columns
    and what tabs should i put to escape that data coming to columns 1 and columns2 only for column3 it should come
    how to give blank space for first two columns and reach the third columns what code to write in form
    regards
    Arora

    Hi Nishant,
    I assume you want the output to be as follows.......
    S.No.---- Mat. No----Description
    01--A00101---LCD Screens, Monitors,
    Computing.
    02--A00102---Modems, Networking
    03--A00103---Mouse, I/O Devices,
    Computing.
    The simplest solution for your problem is, for column 3 (here Description), specify a left margin and a right margin. Say, you want the text to be printed at 7 inches from left of the page margin and should end at 10 inches from the page margin, go to paragraph format and create a new one with desired font type and size and specify a left margin with 7 inches and a right margin with 10 inches. The data will be restricted to that particular column and rest of the fields will be printed as per the TABs specified for them.
    Hope this clears your problem. If this was helpful, please award points.

  • Create a line chart

    I wont to create a line chart using a a PL/SQL script. If is possible, i wont put this script inside a report created using Web DB, as an action that it must run after the show of the report html page. Is possible to make that? what i can do?
    Thanks a lot!
    null

    PL/SQL has no graphical capabilities whatsoever. However it is possible to represent values like this
    X A ----
    B --------
    C -----
    012456789
    Y
    in which for each row (the X axis) a substr() of the value '----------' is created using a value from the query (the Y axis).
    Is that clear? Let's try an example. To print graphically the lengths of a column:
    SELECT col1 as "X", substr('----------',1, length(col1)) as "Y"
    FROM your_table;Not very pretty I grant you. But if you want pretty you'll have to use Oracle Graphics (now part of the Developer toolset) or java.
    Good luck, APC
    null

  • Bulleted list, type breaking to next line

    I'm working in ID CS3. I set up a nested style sheet for a bulleted list. However, the type is breaking too soon--there is still space on the line for more text, but it is breaking it. When I backspace the type trying to bring it up, it will do it, but when I add a word space back in, it jumps down to the next line.
    It is not doing this with other styles I have set up. I tried changing the style to Adobe Single-line composer, but that didn't help.
    (p.s. I'm a long-time Quark user who has been migrating over to InDesign)

    Welcome to the paragraph composer. InDesign's text composition engine is
    far more advanced than XPress'. It looks at the entire paragraph.
    You can turn it off, but I don't advise it. Instead, if you need words
    to stay together, use a no break attribute (create a character style for
    it).
    You say it's off, but there's no way it would be acting that way if it
    were. Look in the paragraph panel and the paragraph styles.
    Bob

  • Ask about how to append text on next line

    I'm writing lingo about log file. For example, i would like
    to write like this when a new entry is appended:
    etc 3/29/2007 8:34 PM
    etc2 3/29/2007 8:34 PM
    Here is the lingo:
    on mouseUp
    if objectP(myFile) then set myFile = 0 -- Delete the
    instance if it already exists
    myFile = new(xtra "fileio") -- Create an instance of FileIO
    openFile(myfile, the moviePath&"try.txt",0) --Open the
    file with R/W access
    myVariable = readFile(myFile)
    setPosition(myfile,getLength(myFile)) -- Set position to end
    of file
    writeString(myFile, " " & "etc" & " " &
    _system.date() & " " & _system.time()) -- Append text to
    the file
    closeFile (myfile) -- Close the file
    myFile = 0 -- Dispose of the instance
    end
    The problem is the appended text is put together, instead of
    a line by a line. In fact, what I want is the appended text is put
    into next line everytime, not on the same line. Please help me to
    modify it, thanks.

    Try changing this line:
    writeString(myFile, " " & "etc" & " " &
    _system.date() & " " &
    _system.time()) -- Append text to the file
    to
    writeString(myFile, " " & "etc" & " " &
    _system.date() & " " &
    _system.time()&RETURN) -- Append text to the file
    Note that if you open the file inNotepad on a PC, it will
    look strange
    because of the way notepad handles line feeds. You can get
    around it by
    doing this:
    winReturn = NumToChar( 13 ) & NumToChar( 10 )
    writeString(myFile, " " & "etc" & " " &
    _system.date() & " " &
    _system.time()&winReturn) -- Append text to the file

  • How to create command line java client

    I have a java servlet FileClient.java and am invoking it thru POST method from the html file. How can I create command line java client so that I can execute this class file from windows command prompt.
    e.g. java FileClient <argument>
    TIA

    > .. there's also a "won't work".
    I could post a sample...I know that you can instantiate and call aservlet,
    or even write your own servlet container - butit's
    still a local instance. He can't invoke his remote
    servlet by calling its class on the client like he
    suggested.HttpURLConnection in main.Only if his Servlet has a main method. Which wouldn't really make it a servlet anymore.
    OP said he wants to invoke it from command-line using
    java -cp . TheServletClass
    He said he has a servlet called FileClient. And he can't invoke a servlet directly that way, without building a wrapper that starts it, making it more than a servlet, and it definitely won't execute on the server. That's my whole point. I never wanted to say you can't write a command-line program that invokes a servlet on a remote server. I do it myself after all.
    I guess I should have expressed myself more clearly.

  • Adobe Photoshop: how to create cut lines on landscape letter for two 5 by 7 in images?

    adobe photoshop: how do i create cutting lines in adobe photoshop if my document is landscape 8.5 by 11 inches and the image are two side by side 5 by 7 in (so appearing 10 inches wides, 7 inch height)... so basically this leaves a 0.5 border top/bottom/left right....i need corner crop marks and a little line in the middle top and bottom (in the crop area) to designate where to cut the 10 inches into 2, creating my two 5 by 7 inches for each image... my guidlines are perfectly aligned, i just need to know how to make cut lines out of my guidelines except in the middle

    What I use to do years ago, before most apps had auto crop marks. Was create the guidelines for the margin. Use a line tool, pen tool, etc. and create a line that goes from the guidelines where they meet each other and draw outwards to the edge of the page. Because the line is on the guideline, it snapped to it, making it a straight line. Repeated for the same corner drawing the other direction. (In other words, if I was doing the top left corner, I would draw out to the left, then repeat to draw out to the top of the page).
    Group the two line, copy and flip to snap it to the next corner and repeat until all four corners of the page are done.
    But if you have a postscript printer, acrobat pro, adober illustrator or adobe indesign, they will generate the crop marks for you.
    tip: Do the above while creating an action and your done for the next time. Just run the action. But I reccomend that you set the rules to percentages when creating the guidelines, that way, it can work on more than one image size.

Maybe you are looking for