PDA

View Full Version : Job application Script



Pazza
15-08-2008, 11:32 AM
Hey,

I have searched, and found a thread by jamieb, but the links in it are dead, and the method doesn't work.

I have HSP 1, but I don't know how to add job applications, so I was wondering either:

1 - How do I add job apps in HSP
2 - Are there any other scripts.

+rep for any help,

Thanks.

Lee
15-08-2008, 01:00 PM
You can always search the forum for a contact form, rename the varibles?

If not then sorry... I have no idea.

Excellent1
15-08-2008, 01:02 PM
I don't know if you can add this in but heres one I did a few weeks ago:
http://www.habboxforum.com/showthread.php?t=508366

Pazza
15-08-2008, 03:02 PM
You can always search the forum for a contact form, rename the varibles?

If not then sorry... I have no idea.
Nvm, it kk.

I don't know if you can add this in but heres one I did a few weeks ago:
http://www.habboxforum.com/showthread.php?t=508366
We have a winner xD

+rep

Excellent1
19-08-2008, 03:37 PM
Works perfectly on my server.
Delete all the other code and use this:

<?php
if(isset($_POST['send'])) { //Checks if the applicant has submitted the form.

if((!$_POST['email']) || (!$_POST['name']) || (!$_POST['job'])) { //Make sure they have filled in all fields.

echo "Some fields have been left blank, please go back and refill them!"; //Display the error.
} //End the check on the fields.

else //Maybe..

{
$email = addslashes(htmlspecialchars($_POST['email'])); //Removes the slashes.
$name = addslashes(htmlspecialchars($_POST['name']));
$sub = addslashes(htmlspecialchars($_POST['Radio Manager']));
$job = addslashes(htmlspecialchars($_POST['job']));
$exp = addslashes(htmlspecialchars($_POST['Any Experience?']));
$now = addslashes(htmlspecialchars($_POST['Are they working now?']));
$unique = addslashes(htmlspecialchars($_POST['How are they unique']));
$them = addslashes(htmlspecialchars($_POST['About them']));
$why = addslashes(htmlspecialchars($_POST['Why BobbaFM, What will they bring?']));

$mail = "[email protected]"; //Change this to the the email you want the message to go to.
$subject = "$name with the e-mail: $email has applied for the job: $job !"; //Displays the name and the job in the email subject.
$mess = "Heres their details:
Name: $name
Email: $email
Job: $job $sub
Their Experience:
$exp
Are they working now:
$now
How are they unique:
$unique
About them:
$them
Why and what will they bring to bobbafm:
$why";

mail("$mail","$subject","$mess"); //We use the mail(); function to send the email.

echo "Your application has been sent, we will reply within 48 hours!"; //Hooharr! Success!
$email = "$email";
$message = "Your application has been recieved for the job $job !.You will recieve another e-mail within the next 48 hours regarding whether or not you have been successful. Good Luck!";
$headers = "From: [email protected]";
mail("$email","$message","$headers");
} //End the else.
} // End the post.

else //Form time!

{

echo "<form method='post' action='$_SERVER[PHP_SELF]'>
Email:<br>
<input type='text' name='email' size='30'><br>
Name:<br>
<input type='text' name='name' size='30'><br>
Job:<br>
<select name='job' size='1'>
<option value='Radio manager' value='Radio manager'>Radio Manager (x3)</option>
</select><br>
Do you have any experience at Being a Radio manager, if yes then where?<br>
<textarea name='Any experience?' cols='45' rows='2'>EG: Radio manager on www.bobbafm.co.uk</textarea><br>
Do you currently have a job anywhere, if so where? <br>
<textarea name='Are they working now?' cols='45' rows='2'>EG: Radio manager on www.bobbafm.co.uk</textarea><br>
What sets you aside from all other Applicants?<br>
<textarea name='How are they unique' cols='45' rows='4'>Try and put in as much detail as you can!</textarea><br>
Give me some info about yourself :)<br>
<textarea name='About them' cols='45' rows='5'>Hi my name is bob I am 98 and I am hip hop cooooool</textarea><br>
Why BobbaFM, and what will you bring to BobbaFM?<br>
<textarea name='Why BobbaFM, What will they bring?' cols='45' rows='5'>I would like to work at bobbafm because its new, and I want to contribute to it becoming successful. To do this, I will bring ... (try and do something like that)</textarea><br>
<input type='submit' name='send' value='Submit></form>";
//You can change these values or whatever, have fun.

} //End the last else.
?>

Pazza
19-08-2008, 03:38 PM
Works perfectly on my server.
Delete all the other code and use this:

<?php
if(isset($_POST['send'])) { //Checks if the applicant has submitted the form.

if((!$_POST['email']) || (!$_POST['name']) || (!$_POST['job'])) { //Make sure they have filled in all fields.

echo "Some fields have been left blank, please go back and refill them!"; //Display the error.
} //End the check on the fields.

else //Maybe..

{
$email = addslashes(htmlspecialchars($_POST['email'])); //Removes the slashes.
$name = addslashes(htmlspecialchars($_POST['name']));
$sub = addslashes(htmlspecialchars($_POST['Radio Manager']));
$job = addslashes(htmlspecialchars($_POST['job']));
$exp = addslashes(htmlspecialchars($_POST['Any Experience?']));
$now = addslashes(htmlspecialchars($_POST['Are they working now?']));
$unique = addslashes(htmlspecialchars($_POST['How are they unique']));
$them = addslashes(htmlspecialchars($_POST['About them']));
$why = addslashes(htmlspecialchars($_POST['Why BobbaFM, What will they bring?']));

$mail = "[email protected]"; //Change this to the the email you want the message to go to.
$subject = "$name with the e-mail: $email has applied for the job: $job !"; //Displays the name and the job in the email subject.
$mess = "Heres their details:
Name: $name
Email: $email
Job: $job $sub
Their Experience:
$exp
Are they working now:
$now
How are they unique:
$unique
About them:
$them
Why and what will they bring to bobbafm:
$why";

mail("$mail","$subject","$mess"); //We use the mail(); function to send the email.

echo "Your application has been sent, we will reply within 48 hours!"; //Hooharr! Success!
$email = "$email";
$message = "Your application has been recieved for the job $job !.You will recieve another e-mail within the next 48 hours regarding whether or not you have been successful. Good Luck!";
$headers = "From: [email protected]";
mail("$email","$message","$headers");
} //End the else.
} // End the post.

else //Form time!

{

echo "<form method='post' action='$_SERVER[PHP_SELF]'>
Email:<br>
<input type='text' name='email' size='30'><br>
Name:<br>
<input type='text' name='name' size='30'><br>
Job:<br>
<select name='job' size='1'>
<option value='Radio manager' value='Radio manager'>Radio Manager (x3)</option>
</select><br>
Do you have any experience at Being a Radio manager, if yes then where?<br>
<textarea name='Any experience?' cols='45' rows='2'>EG: Radio manager on www.bobbafm.co.uk</textarea><br>
Do you currently have a job anywhere, if so where? <br>
<textarea name='Are they working now?' cols='45' rows='2'>EG: Radio manager on www.bobbafm.co.uk</textarea><br>
What sets you aside from all other Applicants?<br>
<textarea name='How are they unique' cols='45' rows='4'>Try and put in as much detail as you can!</textarea><br>
Give me some info about yourself :)<br>
<textarea name='About them' cols='45' rows='5'>Hi my name is bob I am 98 and I am hip hop cooooool</textarea><br>
Why BobbaFM, and what will you bring to BobbaFM?<br>
<textarea name='Why BobbaFM, What will they bring?' cols='45' rows='5'>I would like to work at bobbafm because its new, and I want to contribute to it becoming successful. To do this, I will bring ... (try and do something like that)</textarea><br>
<input type='submit' name='send' value='Submit></form>";
//You can change these values or whatever, have fun.

} //End the last else.
?>

Wrong thread? xD

www.bobbafm.co.uk/app/ (http://www.habboxforum.com/www.bobbafm.co.uk/app/)

:(

Excellent1
19-08-2008, 03:39 PM
Wrong thread?

xD

Ty again,

read my sig :PYeah sorry I had both of them open as I was checking the code, posted in the other one :P

Want to hide these adverts? Register an account for free!