Here's the code that inserts my text, which includes HTML characters:
$quote_question = str_replace('"', '"', trim($_POST['question']));
$links_question = htmlspecialchars("$quote_q
$the_question = mysqli_real_escape_string(
...then I do an insert script and this is working great!
When I go to display what I've inputted, I just do an "echo $_POST['text']" and the link and the text look great.
My problem is when I go to display the question. Although it looks as the though the HTML characters have been inputted correctly, the link will show up as http://localhost/NHBC/fidelis/adm/%22http://www.brucegust.com%22
. In other words, the link is being displayed with my localhost URL prior to it.
What am I doing wrong? The info is being inputted in correctly, but I can't make it render accurately when I go to display it.