Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > VodaHost Web Hosting Support > mySQL & PHP

Notices

mySQL & PHP Discussions, information and help with mySQL and PHP.

Reply
 
LinkBack Thread Tools
  #1  
Old 03-25-2008, 07:03 PM
Second Lieutenant
 
Join Date: Feb 2008
Posts: 120
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 03-25-2008, 10:25 PM
Watdaflip's Avatar
Brigadier General
 
Join Date: Sep 2005
Location: Cincinnati, Ohio
Posts: 1,640
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 03-25-2008, 10:41 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,031
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!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 03-25-2008, 10:48 PM
Watdaflip's Avatar
Brigadier General
 
Join Date: Sep 2005
Location: Cincinnati, Ohio
Posts: 1,640
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old 03-25-2008, 10:52 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,031
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!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old 03-26-2008, 01:50 AM
Second Lieutenant
 
Join Date: Feb 2008
Posts: 120
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 !!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 02:31 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2007 VodaHost.com - All Rights Reserved

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 50 51 52 53 54