Welcome to Welcome to DNF.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars

If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.

Register Today on DNForum IT'S FREE!

Results 1 to 3 of 3
  1. #1
    Platinum Lifetime Member

    Join Date
    Apr 2006
    Location
    Calgary, Canada
    Posts
    163
    DNF$
    121
    Bank
    0
    Total DNF$
    121
    Donate  

    Question PHP troubles with '

    I am having a problem with ' when it is submitted to PHP through a form, as it comes out as \' instead of '
    I tired str_replace and stripcslashes commands and they don't seem to work, is there some way to fix this?

  2. #2
    Platinum Lifetime Member
    ibg's Avatar
    Join Date
    Apr 2006
    Location
    USA
    Posts
    46
    DNF$
    323
    Bank
    0
    Total DNF$
    323
    Donate  

    Re: PHP troubles with '

    $string = str_replace ( ''', '\'', $string );
    or
    $string = str_replace ( '"' , '\'', $string );
    it should work

  3. #3
    Platinum Lifetime Member

    Join Date
    Apr 2006
    Location
    Calgary, Canada
    Posts
    163
    DNF$
    121
    Bank
    0
    Total DNF$
    121
    Donate  

    Re: PHP troubles with '

    That's doesn't work still same problem.

    Figured it out, it wasn't the right file anyways.
    Last edited by Borghunter; 05-06-2006 at 10:44 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Domain name forum recommended by Domaining.com