Hi Guys

Im kind of new to this and i hope i will explain myself enough for you to understand my question.

I have a little dynamic blog. I have a form (called add_post.php)i use to insert my articles (blog_enrty). Unfortunately i get an error saying "you do not have permission to access add_post.php" each time i try to insert an article with html/xhtml characters.

It works fine on my localhost (computer) with or without html characters, but works on my website server only without html.

This is the code on the add_post.php:

if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO news (title, blog_entry,article_id,arthor_id) VALUES (%s, %s, %s, %s)",
GetSQLValueString($_POST['title'], "text"),
GetSQLValueString($_POST['blog_entry'], "text"),
GetSQLValueString($_POST['article_id'], "int"),
GetSQLValueString($_POST['arthor_id'], "int"));

Help will be greatly appreciated.

Edited by Ezzaral: Added code format. I now see that you have 2 identical threads for this. In the future, do not post the same question in multiple locations. Since you have a single response on both of them, I can't remove either one, thus leaving a mess.

6 Years
Discussion Span
Last Post by antonioazevedo
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.