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 :(