Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,191,338 members, 7,943,833 topics. Date: Monday, 09 September 2024 at 05:53 AM |
Nairaland Forum / Science/Technology / Webmasters / Pls Help Me (834 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)
How Do I Apply For Google Adsense? Please I Need Help: / Cbt Nuggets It Certfication Videos / I Am Giving Out Nairawall.com Script - Php
(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 |