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
Printable View
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
rite, ill start on that asap,
ill PM ya the code ok :)
ty and mike ur inbox is full
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.
then put in the followingQuote:
<form id="form" name="contact" action="send.php" method="post">
Quote:
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> </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
Then,Quote:
<form id="form" name="contact" action="send.php" method="post">
create a file called send.php
insert this code into the file
Quote:
<?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
Ive just fixed some of the mistakes ;)
PHP Code:<?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';
}
?>
what should page type be?
.php ;) ....
rite www.habbolox.co.uk/Job1.htm
www.habbolox.co.uk/send.php
what am i doing rong
Yours just using <form> "/ make it <form action="send.php" method="post">
rite soz for bein a n00b can u rite all out so i just copy and paste please coz its not workin for me :(
just copy out mikes html form he gave you :/
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
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 ;)
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
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.
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> </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?
<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> </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..
nope try urself www.habbolox.co.uk/Job1.htm
ah, u've put some of the imput fields before the <form.... part, everything must be after that part
ye view sourceQuote:
Originally Posted by Habbo-Mike2005
can u rite code out coz i dnt get itQuote:
Originally Posted by Habbo-Mike2005
You should stop asking people to do stuff for you.
Go to www.Htmlgoodies.com and luck at the forms bit learn yourself.
I THINK THE PROBLEM WAS THAT U NEEDED TO MAKE JOBS.HTM TO JOBS.PHP
Right Anyways posted this,
.................................................. ............
contact.php
.................................................Quote:
<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> </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
Quote:
<?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';
}
?>