PDA

View Full Version : Job Application Help



nelly
28-09-2005, 01:38 PM
ok when they click submit i want the email to send to [email protected] how do i do it with this form www.habbolox.co.uk/Job1.htm (http://www.habbolox.co.uk/Job1.htm)

:Lively
28-09-2005, 05:27 PM
rite, ill start on that asap,

ill PM ya the code ok :)

nelly
28-09-2005, 05:37 PM
ty and mike ur inbox is full

:Lively
28-09-2005, 05:38 PM
rite i decided to post it instead, ya neva no wen sum1 else mite find it useful.

firstly, on the job1.htm page insert this bit of code before all ur imput boxes.


<form id="form" name="contact" action="send.php" method="post">

then put in the following


Habbo Name:
<input type="text" value="habbo" name="Habbo Name">
<br>Emal:
<input type="text" value="email" name="Email"> </form>
<form>
<p><select name="Jobs">
<option value="dj" selected="selected">Dj</option>
<option value="mod">Moderator</option>
<option value="tvmaker">Tv Maker</option>
<option value="">flash</option>Flash Maker
<option value="game">Game Maker</option>
<option value="alt">Alteration Artist</option>
<option value="news">News Reporter</option>
<option value="php">Php Expert</option>
<option value="html">Html Expert</option></select> </p>
<div><textarea value="msg" rows="10" cols="30">Experiences Have You Got?
</textarea> </div>
<div>&nbsp;</div>
<p><textarea value="msg1" rows="10" cols="30">Why You Want The Job?
</textarea> </p>
<div>
<input type="button" value="Submit My Job Application!"> </div>



and ensure you add this at the very bottom


<form id="form" name="contact" action="send.php" method="post">

Then,

create a file called send.php

insert this code into the file

<?php

if ($_SERVER['REQUEST_METHOD'] != 'GET'){

$habbo = $_POST['habbo'];
$email = $_POST['email'];
$jobs = $_POST['Jobs'];
$message = $_POST['msg'];
$message2 = $_POST['msg1']

Habbo Name: $habbo
\n
Email Address: $email
\n
Job: $jobs
\n
Experience you have?: $message
\n
Why do you want the job?: $message2


";

$subject = $habbo;

mail("[email protected]", $subject, $messig);


}
else
{
echo 'ERROR';
}

?>


There, however there could be a few errors, if unsure simply visit Mentors website and there is a tutorial there

splintercell!
28-09-2005, 05:40 PM
Ive just fixed some of the mistakes ;)


<?php

if ($_SERVER['REQUEST_METHOD'] != 'GET'){

$habbo = $_POST['habbo'];
$email = $_POST['email'];
$jobs = $_POST['Jobs'];
$message = $_POST['msg'];
$message2 = $_POST['msg1'];
$messig = "
Habbo Name: $habbo
\n
Email Address: $email
\n
Job: $jobs
\n
Experience you have?: $message
\n
Why do you want the job?: $message2


";

$subject = $habbo;

mail("[email protected]", $subject, $messig);
header("Location: thanks.html");
}
else
{
echo 'ERROR';
}

?>

nelly
28-09-2005, 06:01 PM
what should page type be?

splintercell!
28-09-2005, 06:03 PM
.php ;) ....

nelly
28-09-2005, 06:13 PM
rite www.habbolox.co.uk/Job1.htm (http://www.habbolox.co.uk/Job1.htm)


www.habbolox.co.uk/send.php (http://www.habbolox.co.uk/send.php)



what am i doing rong

splintercell!
28-09-2005, 06:18 PM
Yours just using <form> "/ make it <form action="send.php" method="post">

nelly
28-09-2005, 06:23 PM
rite soz for bein a n00b can u rite all out so i just copy and paste please coz its not workin for me :(

splintercell!
28-09-2005, 06:25 PM
just copy out mikes html form he gave you :/

nelly
28-09-2005, 06:27 PM
i av i mean where do i put da code u sent me dats wat i mean put it all out wid da 1 u sent me coz i got no clue

splintercell!
28-09-2005, 06:29 PM
wow you really are more stupid than i though was possible "/ Two files:

contact.html or w/e whith the contact form in

send.php with the php handler in it ;)

nelly
28-09-2005, 06:30 PM
lol thnx ive made em both :P at da start but wen u sed add blahblah i tried and it dint work u sed add it insted <form> but i have no clue where 2 add it

splintercell!
28-09-2005, 06:33 PM
cos you just picked up a copy of dreamweaver or frontpage and just used that "/ its best if you leanr to write it out yourself then you understand it.

nelly
28-09-2005, 06:44 PM
rite on job1 thing i put



<form id="form" name="contact" action="send.php" method="post">Habbo Name:
<input type="text" value="habbo" name="Habbo Name">
<br>Emal:
<input type="text" value="email" name="Email"> </form>
<form action="send.php" method="post">
<p><select name="Jobs">
<option value="dj" selected="selected">Dj</option>
<option value="mod">Moderator</option>
<option value="tvmaker">Tv Maker</option>
<option value="">flash</option>Flash Maker
<option value="game">Game Maker</option>
<option value="alt">Alteration Artist</option>
<option value="news">News Reporter</option>
<option value="php">Php Expert</option>
<option value="html">Html Expert</option></select> </p>
<div><textarea rows="10" cols="30" value="msg">Experiences Have You Got?
</textarea> </div>
<div>&nbsp;</div>
<p><textarea rows="10" cols="30" value="msg1">Why You Want The Job?
</textarea> </p>
<div>
<input type="button" value="Submit My Job Application!"> </div>
<form id="form" name="contact" action="send.php" method="post"></form>




still wnt work wat do i change?

splintercell!
28-09-2005, 06:45 PM
<form id="form" name="contact" action="send.php" method="post">Habbo Name:
<input type="text" value="habbo" name="Habbo Name">
<br>Emal:
<input type="text" value="email" name="Email"> </form>
<form action="send.php" method="post">
<p><select name="Jobs">
<option value="dj" selected="selected">Dj</option>
<option value="mod">Moderator</option>
<option value="tvmaker">Tv Maker</option>
<option value="">flash</option>Flash Maker
<option value="game">Game Maker</option>
<option value="alt">Alteration Artist</option>
<option value="news">News Reporter</option>
<option value="php">Php Expert</option>
<option value="html">Html Expert</option></select> </p>
<div><textarea rows="10" cols="30" value="msg">Experiences Have You Got?
</textarea> </div>
<div>&nbsp;</div>
<p><textarea rows="10" cols="30" value="msg1">Why You Want The Job?
</textarea> </p>
<div>
<input type="button" value="Submit My Job Application!"> </div></form>

try that..

nelly
28-09-2005, 06:48 PM
nope try urself www.habbolox.co.uk/Job1.htm (http://www.habbolox.co.uk/Job1.htm)

:Lively
28-09-2005, 06:53 PM
ah, u've put some of the imput fields before the <form.... part, everything must be after that part

nelly
28-09-2005, 06:55 PM
ye view source
have u put </form> at the end??

nelly
28-09-2005, 06:55 PM
can u rite code out coz i dnt get it
ah, u've put some of the imput fields before the <form.... part, everything must be after that part

Dan Williamson
28-09-2005, 06:59 PM
You should stop asking people to do stuff for you.

Go to www.Htmlgoodies.com and luck at the forms bit learn yourself.

:Lively
28-09-2005, 07:01 PM
I THINK THE PROBLEM WAS THAT U NEEDED TO MAKE JOBS.HTM TO JOBS.PHP
Right Anyways posted this,
.................................................. ............

contact.php


<form id="form" name="contact" action="send.php" method="post">Habbo Name:
<input type="text" value="habbo" name="Habbo Name">
<br>Emal:
<input type="text" value="email" name="Email"> </form>
<form action="send.php" method="post">
<p><select name="Jobs">
<option value="dj" selected="selected">Dj</option>
<option value="mod">Moderator</option>
<option value="tvmaker">Tv Maker</option>
<option value="">flash</option>Flash Maker
<option value="game">Game Maker</option>
<option value="alt">Alteration Artist</option>
<option value="news">News Reporter</option>
<option value="php">Php Expert</option>
<option value="html">Html Expert</option></select> </p>
<div><textarea rows="10" cols="30" value="msg">Experiences Have You Got?
</textarea> </div>
<div>&nbsp;</div>
<p><textarea rows="10" cols="30" value="msg1">Why You Want The Job?
</textarea> </p>
<div>
<input type="button" value="Submit My Job Application!"> </div></form>
.................................................
send.php

<?php

if ($_SERVER['REQUEST_METHOD'] != 'GET'){

$habbo = $_POST['habbo'];
$email = $_POST['email'];
$jobs = $_POST['Jobs'];
$message = $_POST['msg'];
$message2 = $_POST['msg1'];
$messig = "
Habbo Name: $habbo
\n
Email Address: $email
\n
Job: $jobs
\n
Experience you have?: $message
\n
Why do you want the job?: $message2


";

$subject = $habbo;

mail("[email protected]", $subject, $messig);
header("Location: thanks.html");
}
else
{
echo 'ERROR';
}

?>

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