Visualizzazione dei risultati da 1 a 6 su 6

Discussione: formattazione testo

  1. #1
    Utente di HTML.it L'avatar di Mike
    Registrato dal
    May 2002
    Messaggi
    423

    formattazione testo

    Salve a tutti,
    ho creato un form per inviare e-mail direttamente dal sito. Il campo area di testo l'ho reso del tipo html! Fin qui tutto a posto, ma quando ricevo l'e-mail arriva in questo modo:

    <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"_sans\" SIZE=\"12\" COLOR=\"#000000\">ciao</FONT></P></TEXTFORMAT>

    Se non rendo il testo html rischio che se vado a capo, chi riceve l'e-mail trova il testo senza spazi! ESEMPIO
    SE SCRIVO:
    ciao
    ciao
    CHI RICEVE:
    ciaociao

    C'e un modo semplice per poter risolvere? :master:
    Mike

  2. #2
    invia l'email in formato html e non testo

    regalami un oggi da favola...e il domani bhe!?non mi importa se tu 6 con me! ©Ily

  3. #3

    Re: formattazione testo

    Originariamente inviato da Mike
    C'e un modo semplice per poter risolvere? :master:
    $testo = nl2br( $testo ); // in php
    Formaldehyde a new Ajax PHP Zero Config Error Debugger

    WebReflection @WebReflection

  4. #4
    Utente di HTML.it L'avatar di Mike
    Registrato dal
    May 2002
    Messaggi
    423
    Grazie mille!!!!

    :quote:



    Mike

  5. #5

    Re: Re: formattazione testo

    Originariamente inviato da andr3a
    $testo = nl2br( $testo ); // in php
    io avevo capito che arrivava questo al destinatario:


    <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"_sans\" SIZE=\"12\" COLOR=\"#000000\">ciao</FONT></P></TEXTFORMAT>



    regalami un oggi da favola...e il domani bhe!?non mi importa se tu 6 con me! ©Ily

  6. #6

    Re: Re: Re: formattazione testo

    Originariamente inviato da Yassassin
    io avevo capito che arrivava questo al destinatario:
    <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"_sans\" SIZE=\"12\" COLOR=\"#000000\">ciao</FONT></P></TEXTFORMAT>
    esatto e il testo che non va a capo e' proprio quello li in mezzo ...


    si e' scordato di scrivere ciaociao invece che ciao , almeno credo fosse cosi', visto che ha ringraziato ridendo
    Formaldehyde a new Ajax PHP Zero Config Error Debugger

    WebReflection @WebReflection

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.