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