Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,194,640 members, 7,955,333 topics. Date: Saturday, 21 September 2024 at 11:06 PM |
Nairaland Forum / Science/Technology / Webmasters / Pls Help Me (835 Views)
Pls Help Me by Dawgzfada(m): 2:51pm On Apr 15, 2011 |
There is a text form am working on. The problem is when i type and submit texts like "I'm going to church", it comes out as "I\\\'m going to church". Any help? |
Re: Pls Help Me by Dawgzfada(m): 3:47pm On Apr 15, 2011 |
Solved. Twas this line in my config.php dat was causing it if(isset($_POST)){foreach($_POST as $key=>$value){$_POST[$key]=addslashes(htmlspecialchars($value));}} |
Re: Pls Help Me by Nobody: 8:19am On Apr 16, 2011 |
you have successfully opened up your application to sql injection by removing that line |
Re: Pls Help Me by Dawgzfada(m): 11:01pm On Apr 18, 2011 |
No i dnt think so. The problem was 'cos i used the 'addslashes' function twice. After including it in my config.php, i still went ahead to use it in my POST function. Thanks tho. |
Re: Pls Help Me by Nobody: 12:20am On Apr 19, 2011 |
ok |
(1) (Reply)
Визави-риэлт / Suggest What Free Script You Want / Turn Your Laptop Into A Hotspot
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 40 |