Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Reporting System
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Brad" data-source="post: 419329" data-attributes="member: 17995"><p>I coded one similar, you'll have to convert it but here it is.</p><p></p><p>[PHP]<?php if(isset($_POST['report_submit']))</p><p> {</p><p> $report_type = $engine->secure($_POST['report_type']);</p><p> $report_data = $engine->secure($_POST['report_data']);</p><p> $report_agree = $engine->secure($_POST['report_agree']);</p><p></p><p> if((($report_type == "furniture_fix") || ($report_type == "client_bug") || ($report_type == "website_bug") || !empty($_POST['report_agree'])))</p><p> {</p><p> $engine->query("INSERT INTO `reports` (type,data,user_id) VALUES ('".$report_type."','".$report_data."', '".$_SESSION['user']['id']."')");</p><p> echo 'Success!';</p><p> } </p><p> else</p><p> {</p><p> echo 'error! oooh, the irony?!?!?';</p><p> } </p><p> }</p><p> ?> </p><p> <form method="post" name ="report_submit"></p><p> <div class="form-section"></p><p> <strong>Select Your Report Type:</strong><br /> </p><p> <p> <p><select name="report_type"></p><p> <option value="furniture_fix">Broken furniture</option></p><p> <option value="client_bug">Issue within the client (eg Disconnection issues)</option></p><p> <option value="website_bug">Issue on our Website (eg A Certain feature not working)</option></p><p> </select></p><p> </div></p><p> <h3>Issue</h3></p><p> <p>Please write your issue below, Please provide a good description.</p></p><p> <p><label><input type="text" name="report_data" size="32" maxlength="32" value="" id="report_data"></label></p></p><p> <div class="form-section"></p><p> <input type="checkbox" value="1" name="report_agree"></p><p> <label>I agree not to abuse this feature, otherwise there maybe consequences.</label></p><p> </div></p><p> </p><p> <br/></p><p> <div class="form-section"></p><p> <input type="submit" class="submit" name="report_submit" value="Submit Report"></p><p> </div></p><p> </form>[/PHP]</p></blockquote><p></p>
[QUOTE="Brad, post: 419329, member: 17995"] I coded one similar, you'll have to convert it but here it is. [PHP]<?php if(isset($_POST['report_submit'])) { $report_type = $engine->secure($_POST['report_type']); $report_data = $engine->secure($_POST['report_data']); $report_agree = $engine->secure($_POST['report_agree']); if((($report_type == "furniture_fix") || ($report_type == "client_bug") || ($report_type == "website_bug") || !empty($_POST['report_agree']))) { $engine->query("INSERT INTO `reports` (type,data,user_id) VALUES ('".$report_type."','".$report_data."', '".$_SESSION['user']['id']."')"); echo 'Success!'; } else { echo 'error! oooh, the irony?!?!?'; } } ?> <form method="post" name ="report_submit"> <div class="form-section"> <strong>Select Your Report Type:</strong><br /> <p> <p><select name="report_type"> <option value="furniture_fix">Broken furniture</option> <option value="client_bug">Issue within the client (eg Disconnection issues)</option> <option value="website_bug">Issue on our Website (eg A Certain feature not working)</option> </select> </div> <h3>Issue</h3> <p>Please write your issue below, Please provide a good description.</p> <p><label><input type="text" name="report_data" size="32" maxlength="32" value="" id="report_data"></label></p> <div class="form-section"> <input type="checkbox" value="1" name="report_agree"> <label>I agree not to abuse this feature, otherwise there maybe consequences.</label> </div> <br/> <div class="form-section"> <input type="submit" class="submit" name="report_submit" value="Submit Report"> </div> </form>[/PHP] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Reporting System
Top