StevenG89

Untitled

May 27th, 2014
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. require(__DIR__."/globals.php");
  4.  
  5. if(isset($_POST['suggestions'])) {
  6.     mysql_query("INSERT INTO suggestions
  7.     VALUES('','{$_POST['suggestionsTITLE']}',unix_timestamp(),'{$_POST['suggestions']}','No','N/A','{$ir['username']}
  8.     [{$ir['userid']}]')",$c) or die("Your suggestion processing has sensed an error, please click back and fix it.<br />
  9.     -<a href='suggestion.php'>Back</a><br />");
  10.     print "Your suggestion has been added!<br />
  11.     <a href='suggestions.php'>> Back</a><br />";
  12. }
  13. else {
  14.     print "<h3>Add Suggestion</h3><br />
  15.     <hr width=50% /><b><font color=red>Do not post things that are NOT ideas or suggestions!</font></b><hr width=50% /><br />
  16.     Suggestion Category:
  17.     <select name='suggestionsTITLE' type='dropdown'>
  18.         <option value='Gangs'>Gangs</option>
  19.         <option value='Gym'>Gym</option>
  20.         <option value='Players'>Players</option>
  21.         <option value='Staff'>Staff</option>
  22.         <option value='Crimes'>Crimes</option>
  23.         <option value='Profiles'>Profiles</option>
  24.         <option value='Referrals'>Referrals</option>
  25.         <option value='General'>General</option>
  26.         <option value='Other'>Other</option>
  27.     </select><br /><br />
  28.     <form method='post' action=''>
  29.         Suggestion:<br />
  30.         <textarea rows='7' cols='40' name='suggestions'></textarea><br />
  31.         <input type='submit' name='suggestions' value='Process' />
  32.     </form>";
  33. }
  34. $h->endpage();
  35. ?>
Advertisement
Add Comment
Please, Sign In to add comment