Getting enters from a textbox

Results 1 to 3 of 3

Thread: Getting enters from a textbox

  1. #1
    Viper Guest

    Default Getting enters from a textbox

    I want to wirte enters to my database like chr, so I can retrieve them when displaying my messages.<BR><BR>Could someone please mail me the code because, I can&#039t get it fixed.<BR><BR><BR><BR>Thanks in advance<BR><BR>Viper

  2. #2
    Dino Karl Guest

    Default RE: Getting enters from a textbox

    If you are using a "textarea" form field, then all LF are stored as character CHR(13) in your database. <BR>At the time, when you want to display the content from the database there are two possibilities:<BR><BR>1. Using a "textarea" form field again. You do not need to format anything because the Chr(13) are being recognized automatically.<BR><BR>2. Displaying the content in HTML you have to write a function to exchange the Chr(13) with the &lt;BR&gt; tags.<BR><BR>Function could look like this:<BR><BR>FUNCTION format4HTML(strInput)<BR>strInput = Replace(strInput, CHR(13), "&lt;BR&gt;")<BR>format4HTML = strInput<BR>END FUNCTION<BR><BR>Hope this helps...<BR><BR>Dino (

  3. #3
    Viper Guest

    Default RE: Getting enters from a textbox

    Thanks for the code it&#039s finally working

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts