473,407 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Characters Issue

384 256MB
I have a textarea and when i add content to the DB say:
#hello&again
It will ad fine, but if i query that string from the DB and place it in a textarea to be edited and save it, anything after and including the & is removed, this seems to happen with & and ; characters. These are the only to i've come across so far, can't seem to figure it out!??
Mar 13 '09 #1
7 1102
TheServant
1,168 Expert 1GB
Not 100% sure but do you have magic_quotes on? Do you strip/add slashes?Can you use html replacements?
Mar 13 '09 #2
ziycon
384 256MB
magic_quotes is turned off in the htaccess file and strip slashes is being used!?
Mar 15 '09 #3
Markus
6,050 Expert 4TB
With HTML & has a special use. Change it to it's entity equivalent (&)

http://uk3.php.net/manual/en/functio...ecialchars.php
Mar 15 '09 #4
ziycon
384 256MB
That will just give the same problem because the two characters causing the problem are bout in it & and ;!?!
Mar 15 '09 #5
TheServant
1,168 Expert 1GB
What is your database saving it as? If you have MyPHPAdmin or something to view your database values, see if "&" and ";" characters are being stored there. If so, then it is your database output script that we need to look at, otherwise it is the input.
Mar 16 '09 #6
ziycon
384 256MB
Ok, i've tested it and this is how it is stored:

I create a new article on the site with the & symbol and it saves to the database, it shows up in the database as & and then when i edit the article on the website it outputs the symbol & but it removes it when saving from the edit!?
Mar 16 '09 #7
TheServant
1,168 Expert 1GB
Well I guess the obvious question is: does the edit get processed the same way as the new form? I imagine no which is why there is a difference. Can you post any differences between how those two forms are handled?
Mar 17 '09 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: lkrubner | last post by:
What I need to do is find out what characters in a string are not supported by the UTF-8 encoding. The problem arises when someone logs in and uses my php script to create a weblog post. They are...
4
by: LRW | last post by:
I'm sorry, I don't know if this is a mySQL issue, or a Putty error, or what. So if there's a better newsgroup for this question, please let me know. I'm using Putty to SSH into our remote Linux...
2
by: Greg Ferris | last post by:
I have read a number of posts with techniques for limiting the max number of characters entered into a textarea, but I'm looking for some advice on how to limit the number of rows and the number of...
10
by: Richard | last post by:
Here is the program problem: Month with 30 days have 720 hours, and month with 31 days have 744 hours. February, with 28 days, has 672 hours. Enhance the input validation of the program code...
5
by: Jain, Pranay Kumar | last post by:
Hello Everyone, I have written a simple app. that converts the dataset into excelspreadsheet. The App. uses the following architecture. First it generates the dataset with corresponding...
4
by: Satish | last post by:
Hi Gurus, Please help me in this, I have tried all options available to me. (Option 1) I am making a simple request from VB.NET client to WBI generated WSDL and passing request parameters. The...
1
by: Steve Grahovac | last post by:
I have been having trouble the last few days opening any ASP.NET web forms in the design view in the designer. Every time I clicked on an aspx file I got a message box with the error "Unable to...
8
by: Rolf Barbakken | last post by:
We have a case where users who are encouraged to have good passwords with norwegian characters and other special characters cannot login to a ASP.NET 1.0 app. This problem is discussed in the...
10
by: Johhny | last post by:
Hello, I am currently trying to write some scripts to get information from the xmlrpc for redhat network. One of the issues I am having is trying to strip off the special characters in the hash...
3
by: prajithgg | last post by:
Hi, I am facing some problem while inserting some non English characters to DB2 server from my java application. We are not able to retrieve the same record when searched with the same non English...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.