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
[Help] UberCMS Job App
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="Nehalem" data-source="post: 254940" data-attributes="member: 37120"><p>I found multiple things in the original code that doesn't even make any sense.</p><p>But here you go, replace the <strong>whole FORM and PHP SCRIPT</strong> with this:</p><p>[PHP]<?php</p><p>$name = USER_NAME;</p><p>if(isset($_POST['apply'])) {</p><p> $job_username = mysql_real_escape_string($_POST['username']);</p><p> $job_email = mysql_real_escape_string($_POST['useremail']);</p><p> $job_date = mysql_real_escape_string($_POST['date']);</p><p> $job_month = mysql_real_escape_string($_POST['month']);</p><p> $job_year = mysql_real_escape_string($_POST['year']);</p><p> $job_why = mysql_real_escape_string($_POST['why']);</p><p> $job_exp = mysql_real_escape_string($_POST['exp']);</p><p></p><p> $job_do = mysql_query("INSERT INTO jobapps (username, email, dob, why, exp) VALUES ('".$job_username."', '".$job_email."', '".$job_date/$job_month/$job_year."', '".$job_why."', '".$job_exp."')");</p><p> if($job_do) {</p><p> echo "<strong>Thank you very much for submitting your staff application, you'll be notified through email if you are considered!</strong>";</p><p> } else {</p><p> die(mysql_error());</p><p> }</p><p>}</p><p>?></p><p></p><p><form method="post" action=""></p><p> <b>Your hotel username</b><br /></p><p> <input type="text" readonly value="<?php echo $name; ?>" name="username"><br /></p><p> <b>An active email address</b><br /></p><p> <input type="text" name="useremail"><br /></p><p> <b>Position your applying for</b><br /></p><p> <input type="text" disabled value="Trial Mod"><br /></p><p> <b>Real deate of birth</b><br /></p><p> <input type="text" style="width: 40px;" name="date" placeholder="Date" maxlength="2" /></p><p> <input type="text" style="width: 40px;" name="month" placeholder="Month" maxlength="2" /></p><p> <input type="text" style="width: 80px;" name="year" placeholder="Year" maxlength="4" /><br /></p><p> <b>Why would we choose you?</b><br /></p><p> <textarea style="width: 250px; margin-left: 15px;" name="why"></textarea><br /></p><p> <b>What experience have you had?</b><br /></p><p> <textarea style="width: 250px; margin-left: 15px;" name="exp"></textarea><br /></p><p> <input type="submit" name="apply" value="Submit"></p><p></form>[/PHP]</p><p></p><p>Tell me if it works or not.</p></blockquote><p></p>
[QUOTE="Nehalem, post: 254940, member: 37120"] I found multiple things in the original code that doesn't even make any sense. But here you go, replace the [B]whole FORM and PHP SCRIPT[/B] with this: [PHP]<?php $name = USER_NAME; if(isset($_POST['apply'])) { $job_username = mysql_real_escape_string($_POST['username']); $job_email = mysql_real_escape_string($_POST['useremail']); $job_date = mysql_real_escape_string($_POST['date']); $job_month = mysql_real_escape_string($_POST['month']); $job_year = mysql_real_escape_string($_POST['year']); $job_why = mysql_real_escape_string($_POST['why']); $job_exp = mysql_real_escape_string($_POST['exp']); $job_do = mysql_query("INSERT INTO jobapps (username, email, dob, why, exp) VALUES ('".$job_username."', '".$job_email."', '".$job_date/$job_month/$job_year."', '".$job_why."', '".$job_exp."')"); if($job_do) { echo "<strong>Thank you very much for submitting your staff application, you'll be notified through email if you are considered!</strong>"; } else { die(mysql_error()); } } ?> <form method="post" action=""> <b>Your hotel username</b><br /> <input type="text" readonly value="<?php echo $name; ?>" name="username"><br /> <b>An active email address</b><br /> <input type="text" name="useremail"><br /> <b>Position your applying for</b><br /> <input type="text" disabled value="Trial Mod"><br /> <b>Real deate of birth</b><br /> <input type="text" style="width: 40px;" name="date" placeholder="Date" maxlength="2" /> <input type="text" style="width: 40px;" name="month" placeholder="Month" maxlength="2" /> <input type="text" style="width: 80px;" name="year" placeholder="Year" maxlength="4" /><br /> <b>Why would we choose you?</b><br /> <textarea style="width: 250px; margin-left: 15px;" name="why"></textarea><br /> <b>What experience have you had?</b><br /> <textarea style="width: 250px; margin-left: 15px;" name="exp"></textarea><br /> <input type="submit" name="apply" value="Submit"> </form>[/PHP] Tell me if it works or not. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
[Help] UberCMS Job App
Top