Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($_POST['threadpost'])
- {
- $threadtitle = $_POST['title'];
- $threadtext = $_POST['text'];
- $avatar = $_POST['avatar'];
- mysql_query("INSERT INTO threads (title, authorid, author, text) VALUES ($threadtitle, $userid, $username, $threadtext)");
- echo "Your thread has been posted!";
- }
- else
- {
- echo "
- <form method='post' id='threadpost' action='./postthread.php'>
- <h1>Title</h1>
- <input type='text' name='title' style='width: 80%' maxlength='100' name='name'>
- <h1>Content</h1>
- <textarea maxlength='50000' name='text' rows='15' cols='80' style='width: 80%'>
- Thread
- </textarea>
- <br />
- <input type='submit' name='postthread' value='Post Thread' />
- </form>";
- }
Add Comment
Please, Sign In to add comment