Form and MySQL problem. No, not register_globals-related :)

A

Anonymous

Guest
you can't insert every kind of character :) Some chars you have to escape before inserting into yur database :)
 
little corections... can you tell us what do get when run thi script?

Code:
if(isset($do_post)) 
        { 
        mysql_query("INSERT INTO forum (name,contents,user,mid) VALUES ('$p_name','$p_contents','$p_user','$p_mid')") or die(mysql_error()); 
      header("Location: $PHP_SELF"); 
        }
 
Back
Top