piano0011 Posted July 23, 2018 Share Posted July 23, 2018 Hey guys! I am trying to make a forum and got the following errors: According to my url, the error seems to be in my post_reply_parse.php.... Upon further looking at the code, I think the problem lies in this section: ``` <?php include_once 'header.php'; if (!isset($_SESSION['u_uid'])) { header ("Location: index.php?post_reply_parse=notlogin"); exit(); } else { if (!isset($_POST['submit'])) { header("Location: post_reply.php?post_reply_parse=error"); exit(); } else { include_once 'includes/dbh.php'; $date = date("Y-m-d H:i:s"); $creator = $_SESSION['u_uid']; $reply_content = $_POST['reply_content']; $cid = $_POST['cid']; $tid = $_POST['tid']; $limit = 1; ``` For some reason, if I do this, then it works: <?php include_once 'header.php'; if (!isset($_SESSION['u_uid'])) { header ("Location: index.php?post_reply_parse=notlogin"); exit(); } else { include_once 'includes/dbh.php'; $date = date("Y-m-d H:i:s"); $creator = $_SESSION['u_uid']; $reply_content = $_POST['reply_content']; $cid = $_POST['cid']; $tid = $_POST['tid']; $limit = 1; Quote Link to comment https://forums.phpfreaks.com/topic/307547-php-forum-error/ Share on other sites More sharing options...
piano0011 Posted July 23, 2018 Author Share Posted July 23, 2018 It was my fault... the name is not called submit.. I had the wrong name Quote Link to comment https://forums.phpfreaks.com/topic/307547-php-forum-error/#findComment-1559974 Share on other sites More sharing options...
ginerjm Posted July 23, 2018 Share Posted July 23, 2018 for future reference.... When you have an error message with a line number, show us THAT line if you can't resolve it yourself. Quote Link to comment https://forums.phpfreaks.com/topic/307547-php-forum-error/#findComment-1559975 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.