Guest Posted February 18, 2012 Share Posted February 18, 2012 Ok, so can someone edit this code: <center> <table height="300px" bgcolor="#FFFF00" cellspacing="1" width="75%"> <tbody> <tr> <td> <table height="433" bgcolor="#000000" cellpadding="10px" cellspacing="1" width="995"> <tbody> <tr> <td bgcolor="#000000" valign="top" width="20%"> <div id="menu" align="right" > <a href="/forums/index.php">HOME</a> | <a href="mailto:xxxxxxx@trigamer.com">CONTACT</a> | <a href="">ABOUT (soon)</a> </div> <?php $fid = $_GET['fid']; require "global.php"; if ($_POST) { if (! trim($message) ) { // message is blank } $user = $_POST['user']; $password = $_POST['password']; $message = $_POST['message']; $title = $_POST['title']; $date = time(); $data = sprintf("INSERT INTO threads (tid, fid, title, user, dateline) VALUES (DEFAULT, $fid, '$title', '$user', $date)"); mysql_query($data); $tid = mysql_insert_id(); $data = sprintf("INSERT INTO posts VALUES (DEFAULT, $tid, '$user', '$message', $date)"); mysql_query($data); header( 'Location: replythread.php?tid='.$tid ); exit; } echo ' <font size=5><b>Add a New Post:</b></font> <form action="" method="POST" name="formpost" onsubmit="return validate();"> <table> <tr><td>Username:</td><td><input name="user" /></td></tr> <tr><td>Password (optional):</td><td><input type="password" name="password"></td></tr> <tr><td>Post Title:</td><td><input name="title" /></td></tr> <tr><td valign="top">Message: </td><td><textarea rows="10" cols="50" name="message"></textarea></td></tr> </table> <input type="submit" value=" Add new post " /> </form>'; ?> </td></tr></tbody></table></td></tr></tbody></table><br /> </center> <script> function validate() {return true; } </script> So that a tickable box can be beside "Post title" to the right of the text box that says, "Review," so that when a post is made, it will have "Review:" before the post title on the forum? Here is what the code above shows you: And this is what I want it to look like on the forums: Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/257254-automatic-post-type-in-title/ Share on other sites More sharing options...
requinix Posted February 18, 2012 Share Posted February 18, 2012 Ok, so can someone edit this code: Like, do it for you? How much are you offering? Quote Link to comment https://forums.phpfreaks.com/topic/257254-automatic-post-type-in-title/#findComment-1318667 Share on other sites More sharing options...
Guest Posted February 18, 2012 Share Posted February 18, 2012 Uhhhhh, lol? I don't think it'd be that hard if you're ok with PHP... Quote Link to comment https://forums.phpfreaks.com/topic/257254-automatic-post-type-in-title/#findComment-1318668 Share on other sites More sharing options...
requinix Posted February 18, 2012 Share Posted February 18, 2012 That's true, but why should any of us go out of our way to do the work for you? We'd love to help you do it, though, if you're willing to put some time into it. Quote Link to comment https://forums.phpfreaks.com/topic/257254-automatic-post-type-in-title/#findComment-1318677 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.