The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Replace PHP string

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #36805

    So this is my code, it’s supposed to replace with


    as well as ending, and fix line break within a PHP form submit action.

    $questions = $_REQUEST;
    $comment2 = htmlentities($questions, ENT_QUOTES);
    $question3 = ereg_replace( "n", "
    ", $comment2);
    $question4 = ereg_replace( "<code>", "
    ", $question3);
    $question = ereg_replace( "</code>", "

    ", $question4);

Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.