SHOW:
|
|
- or go back to the newest paste.
| 1 | ||
| 2 | Here's what I got: | |
| 3 | - | if(isset($_POST['whatever'])) {
|
| 3 | + | |
| 4 | - | echo "This is what happens when the forum is submitted."; |
| 4 | + | |
| 5 | ||
| 6 | require "globals.php"; | |
| 7 | - | echo " |
| 7 | + | |
| 8 | - | <form method='post'> |
| 8 | + | |
| 9 | - | <input type='submit' name='whatever' value='Click Me' /> |
| 9 | + | |
| 10 | - | </form> |
| 10 | + | |
| 11 | - | "; |
| 11 | + | |
| 12 | print "Your suggestion has been added!<br /> | |
| 13 | <a href='suggestions.php'>> Back</a><br />"; | |
| 14 | } | |
| 15 | else | |
| 16 | {
| |
| 17 | print "<h3>Add Suggestion</h3><br /> | |
| 18 | <hr width=50% /><b><font color=red>Do not post things that are NOT ideas or suggestions!</font></b><hr width=50% /><br /> | |
| 19 | Suggestion Category: <select name='suggestionsTITLE' type='dropdown'> | |
| 20 | <option value='Gangs'>Gangs</option> | |
| 21 | <option value='Gym'>Gym</option> | |
| 22 | <option value='Players'>Players</option> | |
| 23 | <option value='Staff'>Staff</option> | |
| 24 | <option value='Crimes'>Crimes</option> | |
| 25 | <option value='Profiles'>Profiles</option> | |
| 26 | <option value='Referrals'>Referrals</option> | |
| 27 | <option value='General'>General</option> | |
| 28 | <option value='Other'>Other</option> | |
| 29 | </select><br /><br /> | |
| 30 | Suggestion:<br /><textarea rows='7' cols='40' name='suggestions'></textarea><br /> | |
| 31 | <input type='submit' value='Process' /></form>"; | |
| 32 | } | |
| 33 | $h->endpage(); | |
| 34 | ?> | |
| 35 | ||
| 36 | Issue: | |
| 37 | ||
| 38 | <input type='submit' value='Process' /></form>"; | |
| 39 | ||
| 40 | Leads me nowhere...I need it to import the data in the database in order for it work... | |
| 41 | ||
| 42 | Original script: | |
| 43 | ||
| 44 | <?php | |
| 45 | ||
| 46 | require "globals.php"; | |
| 47 | ||
| 48 | if($_POST['breport']) | |
| 49 | {
| |
| 50 | $urgency=$_POST['urgency']; | |
| 51 | mysql_query("INSERT INTO breport VALUES('', '$urgency','{$_POST['bugTITLE']}',unix_timestamp(),'{$_POST['breport']}','No','N/A','{$ir['username']} [{$ir['userid']}]')",$c) or die("Your Bug Processing has sensed an error, Please click back and fix it.<br />
| |
| 52 | -<a href='bugreport.php'>Back</a><br />"); | |
| 53 | print "Your bug has been added!<br /> | |
| 54 | <a href='breport.php'>> Back</a><br />"; | |
| 55 | } | |
| 56 | else | |
| 57 | {
| |
| 58 | print "<h3>Add Your Bug Report</h3><br /> | |
| 59 | <hr width=50% /><b><font color=red>Do not post things that are NOT bugs. You will just be federal jailed.</font></b><hr width=50% /><br /> | |
| 60 | <form action='addbug.php' method='post'> | |
| 61 | Bug Catagory : <select name='bugTITLE' type='dropdown'> | |
| 62 | <option value='Gangs'>Gangs</option> | |
| 63 | <option value='Comments'>Comments</option> | |
| 64 | <option value='Players'>Players</option> | |
| 65 | <option value='Staff'>Staff</option> | |
| 66 | <option value='Login'>Login</option> | |
| 67 | <option value='Refferals'>Refferals</option> | |
| 68 | <option value='General'>General</option> | |
| 69 | <option value='Grammer'>Grammer</option> | |
| 70 | <option value='Page Error'>Page Error</option> | |
| 71 | <option value='Script Faulty'>Script Faulty</option> | |
| 72 | <option value='Other'>Other</option> | |
| 73 | </select><br /> | |
| 74 | Urgency : <select name='urgency' type='dropdown'> | |
| 75 | <option value='1'>Low</option> | |
| 76 | <option value='2'>Medium</option> | |
| 77 | <option value='3'>High</option> | |
| 78 | <option value='4'>Very High</option> | |
| 79 | </select><br /> | |
| 80 | Bug/Error :<textarea rows='7' cols='40' name='breport'></textarea><br /> | |
| 81 | <input type='submit' value='Proccess Bug' /></form>"; | |
| 82 | } | |
| 83 | $h->endpage(); | |
| 84 | ?> | |
| 85 | ||
| 86 | Was originally a Bug report script btw as seen above ^ |