Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,151,146 members, 7,811,229 topics. Date: Sunday, 28 April 2024 at 07:08 AM

Pls Help Me - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / Pls Help Me (819 Views)

(2) (3) (4)

(1) (Reply) (Go Down)

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. wink
Re: Pls Help Me by Nobody: 12:20am On Apr 19, 2011
ok

(1) (Reply)

Cbt Nuggets It Certfication Videos / Any Forum Like Nairaland / End Of The Year Promo, Get A STANDARD Website For Just 20k

(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. 7
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.