Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Spaces Being Stripped
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

thezod
Starting Member

8 Posts

Posted - 29 March 2001 :  19:32:02  Show Profile


Hi,

I am trying to allow people to edit their profiles that are stored in a database.

To do so, I have currently got my asp code grabbing the records from the database and storing them in form textfields and textareas. However I am finding that when I am setting the textfield value it is stripping the spaces from the record stored in the databse.

I have confirmed this by using a response.write to display the field does contain to words, seperated by a space.

I am sure that someone else has seen this happen before and would appreciate some help to solve my problem!

Thanks in advance

Nathan

Doug G
Support Moderator

USA
6493 Posts

Posted - 29 March 2001 :  19:41:26  Show Profile
You need to wrap the data from the database in quotes, or better use server.htmlencode(databasedata) when you are putting the data in the html text field.


======
Doug G
======
Go to Top of Page

thezod
Starting Member

8 Posts

Posted - 29 March 2001 :  20:01:39  Show Profile
Doug,

Thanks for the response.

I have got it working for the textfields...

but what about the textareas? I am still finding that spaces are being removed :(

Thanks again

Edited by - thezod on 29 March 2001 20:35:29
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07