+ Reply to Thread
Results 1 to 6 of 6

Thread: PHP and ABVFP
      
   

  1. #1
    dannysheps@hotmail.com is offline Second Lieutenant
    Join Date
    Feb 2008
    Posts
    138

    Default PHP and ABVFP

    Hello

    when some one is typing in an text box in ABVFP the text is saved like that : aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(l ets say) in one long line (if the user didnt use Enter)

    can i make it store and be saved like that (the same amount of charichters) :
    aaaaaaaaaaaa
    aaaaaaaaaaaa
    aaaaaaaaaaaa



    10x

  2. #2
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: PHP and ABVFP

    Most likely it isn't adding a break on new lines. I cant really give you exact instructions on where to make the change, but just call the nl2br() function on the variable with the saved text

    ex.

    $textbox = nl2br($data_from_database);
    echo $textbox;

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

  3. #3
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: PHP and ABVFP

    A string that is long will be saved as a long string. This is not a ABVFP issue. If you have whitespaces between words, the text WILL be taken to a new line, if no whitespaces are used, it is intrpreted as a single string and as such is rendered. It would be unthinkable to break in arbitrary mode the strings. What if you used a wider or narrower text field? How could ever the script understand where you want the string broken ?

    Unless i missed something, i don't understand what you mean.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  4. #4
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: PHP and ABVFP

    Quote Originally Posted by navaldesign View Post
    A string that is long will be saved as a long string. This is not a ABVFP issue. If you have whitespaces between words, the test in the text area WILL be taken to a new line, if no whitespaces are used, it is intrpreted as a single string and as such is rendered. It would be unthinkable to break in arbitrary mode the strings. What if you used a wider or narrower text field? How could ever the script understand where you want the string broken ?

    Unless i missed something, i don't understand what you mean.
    Opp.. yeah disregard my post, its not going to help unless they hit enter at any point to create the new line.

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

  5. #5
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: PHP and ABVFP

    In fact, if they do use the "Enter" key to create a CR (new line) ABVFP will save it with such CR.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  6. #6
    dannysheps@hotmail.com is offline Second Lieutenant
    Join Date
    Feb 2008
    Posts
    138

    Default Re: PHP and ABVFP

    yeah i was (too tierd at the time) and couldnt see that NO ONE will write a message like that "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy" with ouy any white space so i was breaking my head for nothing

    thanks alot !!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49