View difference between Paste ID: ja7dz0hm and dDQ2E9VL
SHOW: | | - or go back to the newest paste.
1
<?php
2-
Here's what I got:
2+
3
require(__DIR__."/globals.php");
4
5
if(isset($_POST['suggestions'])) {
6-
require "globals.php";
6+
	mysql_query("INSERT INTO suggestions 
7
	VALUES('','{$_POST['suggestionsTITLE']}',unix_timestamp(),'{$_POST['suggestions']}','No','N/A','{$ir['username']}
8-
if($_POST['suggestions'])
8+
 	[{$ir['userid']}]')",$c) or die("Your suggestion processing has sensed an error, please click back and fix it.<br />
9-
{
9+
	-<a href='suggestion.php'>Back</a><br />");
10-
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 />
10+
	print "Your suggestion has been added!<br />
11-
-<a href='suggestion.php'>Back</a><br />");
11+
	<a href='suggestions.php'>> Back</a><br />";
12-
print "Your suggestion has been added!<br />
12+
13-
<a href='suggestions.php'>> Back</a><br />";
13+
else {
14
	print "<h3>Add Suggestion</h3><br />
15-
else
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-
{
16+
	Suggestion Category: 
17-
print "<h3>Add Suggestion</h3><br />
17+
	<select name='suggestionsTITLE' type='dropdown'>
18-
<hr width=50% /><b><font color=red>Do not post things that are NOT ideas or suggestions!</font></b><hr width=50% /><br />
18+
		<option value='Gangs'>Gangs</option>
19-
Suggestion Category: <select name='suggestionsTITLE' type='dropdown'>
19+
		<option value='Gym'>Gym</option>
20-
<option value='Gangs'>Gangs</option>
20+
		<option value='Players'>Players</option>
21-
<option value='Gym'>Gym</option>
21+
		<option value='Staff'>Staff</option>
22-
<option value='Players'>Players</option>
22+
		<option value='Crimes'>Crimes</option>
23-
<option value='Staff'>Staff</option>
23+
		<option value='Profiles'>Profiles</option>
24-
<option value='Crimes'>Crimes</option>
24+
		<option value='Referrals'>Referrals</option>
25-
<option value='Profiles'>Profiles</option>
25+
		<option value='General'>General</option>
26-
<option value='Referrals'>Referrals</option>
26+
		<option value='Other'>Other</option>
27-
<option value='General'>General</option>
27+
	</select><br /><br />
28-
<option value='Other'>Other</option>
28+
	<form method='post' action=''>
29-
</select><br /><br />
29+
		Suggestion:<br />
30-
Suggestion:<br /><textarea rows='7' cols='40' name='suggestions'></textarea><br />
30+
		<textarea rows='7' cols='40' name='suggestions'></textarea><br />
31-
<input type='submit' value='Process' /></form>";
31+
		<input type='submit' name='suggestions' value='Process' />
32
	</form>";
33
}
34-
?>
34+
35
?>