Jump to content

What's wrong with this strpos line?


R0CKY

Recommended Posts

Sorry no I can't because the check happens after the form is submitted and the webpage refreshes, here's that section..

 

	        if (strpos(xhtml_convert($_POST['comment']), "http") === false)
          {
                if (strpos(xhtml_convert($_POST['comment']), "www") === false)
          {

    $db->Execute("INSERT INTO ".$dbPrefix."comments (comment_userid, comment_fileid, comment_time, comment_poster, comment_ip, comment_text) VALUES (".$userinfo[0]['user_userid'].", ".intval($_GET['file']).", ".time().",  '".xhtml_convert($_POST['poster'])."', '".$_SERVER['REMOTE_ADDR']."', '".smart_slashes(str_replace("\n", "<br />", $commentText))."')");

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.