Log in

View Full Version : [RELEASE] {V1.1} DOMS JOB SYSTEM



rh4u
17-11-2007, 06:11 PM
This Script Is Absoulty free! Just edit the config and it will work fine ;)
Since its free, i ask that you keep the copyright footer on :) Thankyou.
Coming In V1.5:
-Option to save info to a database/email to admin/Both with an admin panel
-Security
Script:


<?php
###CONFIGURING FUNCTIONS
$sitename = "YOURSITENAME"; ##This is used to in the email that gets sent to you
$siteurl = "http://YOURSITE.COM"; ##NEEDED FOR FORM REDIRECTING.YOU MUST INCLUDE HTTP://
$formemail = "[email protected]"; ##WHERE THE SITE FORM WILL BE EMAILED TO
switch ($HTTP_GET_VARS[id]) {
default:
echo "<form name=\"jobs\" method=\"post\" action=\"";?><?php $_POST['SELF']?><?php echo"?id=send\">
<label>Full Name:
<input name=\"name\" type=\"text\" id=\"name\">
</label>
<br />
<label>Email Address:
<input name=\"email\" type=\"text\" id=\"email\">
</label>
<br />
<label>Contact Number:
<input name=\"cotnum\" type=\"text\" id=\"cotnum\">
<br>
Job Wanted:
<select name=\"job_wants\">
<option value=\"Please Select A Job\">Please Select A Job</option>
<option value=\"Technician\">Technician</option>
<option value=\"Support\">Support</option>
<option value=\"Advertiser\">Advertiser</option>
<option value=\"Coder\">Coder</option>
</select>
<br />
Previous Experiance:<br />
<textarea name=\"prevexp\" cols=\"50\" rows=\"8\"></textarea>
<br />
Reference (If Any):<br />
<textarea name=\"reference\" cols=\"50\" rows=\"8\"></textarea>
<br />
CV: (If Any)
<br />
Write CV: (If Any)<br />
<textarea name=\"mycv_write\" cols=\"50\" rows=\"8\"></textarea>
<br />
<br />
Why Should WE Hire YOU?:<br />
<textarea name=\"yhireu\" cols=\"50\" rows=\"8\"></textarea>
<br />
<label>Gender:
<select name=\"gender\">
<option value=\"Male\">Male</option>
<option value=\"Feamale\">Feamale</option>
<option value=\"Other\">Other</option>
</select>
</label>
<br />
<label>Address:
<textarea name=\"address\"></textarea>
</label>
<br />
<input type=\"submit\" value=\"Send!\">
</label>
<br />
</form>";
break;
case 'send':
$to = $formemail;
$subject = "Jobs $name";
$name = $_POST['name'];
$contactnum = $_POST['cotnum'];
$writecv = $_POST['mycv_write'];
$wswhy = $_POST['yhireu'];
$email = $_POST['email'];
$job = $_POST['job_wants'];
$ref = $_POST['reference'];
$gender = $_POST['gender'];
$address = $_POST['address'];
## NEXT PART IS FOR EMAILING!
$message = "Hello
Please Keep Me Updated!
Full Name: $name
Email Address: $email
Contact Number: $contactnum
My CV: $mycv_write
Why We Should Hire $name: $writecv
Job $name Wants: $job_wants
Reference: $ref
Gender: $gender
Address: $address";
$email_headers = 'From: $sitename JOBS SYSTEM' . "\r\n" .
'Reply-To: NO REPLY TO THIS SYTEM.' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $email_headers);
print "<center>Thankyou $name!<br />Your Details Were As Followed: <br />Full Name: $name<br />
Email Address: $email<br />
Contact Number: $contactnum<br />
My CV: $writecv<br />
Why We Should Hire $name: $wswhy<br />
Job $name Wants: $job<br />
Reference: $ref<br />
Gender: $gender<br />
Address: $address<br />";
break;
}
?>
<br />It Will Take Up To 48 Hours For A Reply!<br /><a href="$siteurl" />Back To Site...</a></center><br /></a>

Dentafrice,
17-11-2007, 06:14 PM
Would you quit posting them like that.. please? It drives me nuts.

Use the PHP/code button to post it, and quit just making one file scripts. ZIP it up ;)

Jamesy
17-11-2007, 06:20 PM
What does it do :S

rh4u
17-11-2007, 06:21 PM
sorry, i did, i was just having problems with the link back to website stopping the php clicky thing from working.
if you would like to see a working demo: http://mastersoundz.com/emailer.php

Luno1599
17-11-2007, 06:22 PM
It basicly emails the input to you, i think

rh4u
17-11-2007, 06:25 PM
Correct, its basicaly there to help you not do coding and get your site going asap

Flashbox
17-11-2007, 06:28 PM
Add a layout to it. make it abit more proffesional?
Atm it just looks like a normal form...

rh4u
17-11-2007, 06:30 PM
thats the responsibility of the user
they realy just need to do <?php include ("PATH/TO/FILE");?>

rh4u
17-11-2007, 06:34 PM
New Release, Updated A Bug
<?php
###CONFIGURING FUNCTIONS
$sitename = "YOURSITENAME"; ##This is used to in the email that gets sent to you
$siteurl = "http://YOURSITE.COM"; ##NEEDED FOR FORM REDIRECTING. YOU MUST INCLUDE HTTP://
$formemail = "[email protected]"; ##WHERE THE SITE FORM WILL BE EMAILED TO
switch ($HTTP_GET_VARS[id]) {
default:
echo "<form name=\"jobs\" method=\"post\" action=\"";?><?php $_POST['SELF']?><?php echo"?id=send\">
<label>Full Name:
<input name=\"name\" type=\"text\" id=\"name\">
</label>
<br />
<label>Email Address:
<input name=\"email\" type=\"text\" id=\"email\">
</label>
<br />
<label>Contact Number:
<input name=\"cotnum\" type=\"text\" id=\"cotnum\">
<br>
Job Wanted:
<select name=\"job_wants\">
<option value=\"Please Select A Job\">Please Select A Job</option>
<option value=\"Technician\">Technician</option>
<option value=\"Support\">Support</option>
<option value=\"Advertiser\">Advertiser</option>
<option value=\"Coder\">Coder</option>
</select>
<br />
Previous Experiance:<br />
<textarea name=\"prevexp\" cols=\"50\" rows=\"8\"></textarea>
<br />
Reference (If Any):<br />
<textarea name=\"reference\" cols=\"50\" rows=\"8\"></textarea>
<br />
CV: (If Any)
<br />
Write CV: (If Any)<br />
<textarea name=\"mycv_write\" cols=\"50\" rows=\"8\"></textarea>
<br />
<br />
Why Should WE Hire YOU?:<br />
<textarea name=\"yhireu\" cols=\"50\" rows=\"8\"></textarea>
<br />
<label>Gender:
<select name=\"gender\">
<option value=\"Male\">Male</option>
<option value=\"Feamale\">Feamale</option>
<option value=\"Other\">Other</option>
</select>
</label>
<br />
<label>Address:
<textarea name=\"address\"></textarea>
</label>
<br />
<input type=\"submit\" value=\"Send!\">
</label>
<br />
</form>";
break;
case 'send':
$to = $formemail;
$subject = "Jobs $name";
$name = $_POST['name'];
$contactnum = $_POST['cotnum'];
$writecv = $_POST['mycv_write'];
$wswhy = $_POST['yhireu'];
$email = $_POST['email'];
$job = $_POST['job_wants'];
$ref = $_POST['reference'];
$gender = $_POST['gender'];
$address = $_POST['address'];
$prevexp = $_POST['prevexp'];
## NEXT PART IS FOR EMAILING!
$message = "Hello
Please Keep Me Updated!
Full Name: $name
Email Address: $email
Contact Number: $contactnum
My CV: $mycv_write
Previous Experiance: $prevexp
Why We Should Hire $name: $writecv
Job $name Wants: $job_wants
Reference: $ref
Gender: $gender
Address: $address";
$email_headers = 'From: $sitename JOBS SYSTEM' . "\r\n" .
'Reply-To: NO REPLY TO THIS SYTEM.' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $email_headers);
print "<center>Thankyou $name!<br />Your Details Were As Followed: <br />Full Name: $name<br />
Email Address: $email<br />
Contact Number: $contactnum<br />
My CV: $writecv<br />
Previous Experiance: $prevexp
Why We Should Hire $name: $wswhy<br />
Job $name Wants: $job<br />
Reference: $ref<br />
Gender: $gender<br />
Address: $address<br />";
break;
}
?>
<br />It Will Take Up To 48 Hours For A Reply!<br /><a href="$siteurl" />Back To Site...</a></center><br />

Flashbox
17-11-2007, 06:35 PM
Yes i know, but you could center it all, put it in a table with a background or at least change the font.

Florx
17-11-2007, 06:57 PM
Parse error: syntax error, unexpected T_CASE in /home/soundz/public_html/emailer.php on line 60

Get your errors sorted before [RELEASE]!

rh4u
17-11-2007, 06:58 PM
lol Release 3, i forgot to put the <?php on the second release ^_^

<?php
###CONFIGURING FUNCTIONS
$sitename = "YOURSITENAME"; ##This is used to in the email that gets sent to you
$siteurl = "http://YOURSITE.COM"; ##NEEDED FOR FORM REDIRECTING. YOU MUST INCLUDE HTTP://
$formemail = "[email protected]"; ##WHERE THE SITE FORM WILL BE EMAILED TO
switch ($HTTP_GET_VARS[id]) {
default:
echo "<form name=\"jobs\" method=\"post\" action=\"";?><?php $_POST['SELF']?><?php echo"?id=send\">
<label>Full Name:
<input name=\"name\" type=\"text\" id=\"name\">
</label>
<br />
<label>Email Address:
<input name=\"email\" type=\"text\" id=\"email\">
</label>
<br />
<label>Contact Number:
<input name=\"cotnum\" type=\"text\" id=\"cotnum\">
<br>
Job Wanted:
<select name=\"job_wants\">
<option value=\"Please Select A Job\">Please Select A Job</option>
<option value=\"Technician\">Technician</option>
<option value=\"Support\">Support</option>
<option value=\"Advertiser\">Advertiser</option>
<option value=\"Coder\">Coder</option>
</select>
<br />
Previous Experiance:<br />
<textarea name=\"prevexp\" cols=\"50\" rows=\"8\"></textarea>
<br />
Reference (If Any):<br />
<textarea name=\"reference\" cols=\"50\" rows=\"8\"></textarea>
<br />
CV: (If Any)
<br />
Write CV: (If Any)<br />
<textarea name=\"mycv_write\" cols=\"50\" rows=\"8\"></textarea>
<br />
<br />
Why Should WE Hire YOU?:<br />
<textarea name=\"yhireu\" cols=\"50\" rows=\"8\"></textarea>
<br />
<label>Gender:
<select name=\"gender\">
<option value=\"Male\">Male</option>
<option value=\"Feamale\">Feamale</option>
<option value=\"Other\">Other</option>
</select>
</label>
<br />
<label>Address:
<textarea name=\"address\"></textarea>
</label>
<br />
<input type=\"submit\" value=\"Send!\">
</label>
<br />
</form>";
break;
case 'send':
$to = $formemail;
$subject = "Jobs $name";
$name = $_POST['name'];
$contactnum = $_POST['cotnum'];
$writecv = $_POST['mycv_write'];
$wswhy = $_POST['yhireu'];
$email = $_POST['email'];
$job = $_POST['job_wants'];
$ref = $_POST['reference'];
$gender = $_POST['gender'];
$address = $_POST['address'];
$prevexp = $_POST['prevexp'];
## NEXT PART IS FOR EMAILING!
$message = "Hello
Please Keep Me Updated!
Full Name: $name
Email Address: $email
Contact Number: $contactnum
My CV: $mycv_write
Previous Experiance: $prevexp
Why We Should Hire $name: $writecv
Job $name Wants: $job_wants
Reference: $ref
Gender: $gender
Address: $address";
$email_headers = 'From: $sitename JOBS SYSTEM' . "\r\n" .
'Reply-To: NO REPLY TO THIS SYTEM.' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $email_headers);
print "<center>Thankyou $name!<br />Your Details Were As Followed: <br />Full Name: $name<br />
Email Address: $email<br />
Contact Number: $contactnum<br />
My CV: $writecv<br />
Previous Experiance: $prevexp
Why We Should Hire $name: $wswhy<br />
Job $name Wants: $job<br />
Reference: $ref<br />
Gender: $gender<br />
Address: $address<br />
<br />It Will Take Up To 48 Hours For A Reply!<br /><a href=\"$siteurl\" />Back To Site...</a></center><br /> ";
break;
}
?>
<center>
Doms News System, Avalible For Free From RH4U.co.uk
</center>

Luno1599
17-11-2007, 07:01 PM
Why do you not edit the main post and update it there insed of posting the updates... or have you done that :S

rh4u
17-11-2007, 07:03 PM
i cant, 15 mins expired

Flashbox
17-11-2007, 07:05 PM
<?php
###CONFIGURING FUNCTIONS
$sitename = "YOURSITENAME"; ##This is used to in the email that gets sent to you
$siteurl = "http://YOURSITE.COM"; ##NEEDED FOR FORM REDIRECTING. YOU MUST INCLUDE HTTP://
$formemail = "[email protected]"; ##WHERE THE SITE FORM WILL BE EMAILED TO
switch ($HTTP_GET_VARS[id]) {
default:
echo "<form name=\"jobs\" method=\"post\" action=\"";?><?php $_POST['SELF']?><?php echo"?id=send\">
<center><font face=\"Tahoma\" size=\"2\" color=\"black\"><b><label>Full Name<br />
<input name=\"name\" type=\"text\" id=\"name\">
</label>
<br />
<label>Email Address<br />
<input name=\"email\" type=\"text\" id=\"email\">
</label>
<br />
<label>Contact Number<br />
<input name=\"cotnum\" type=\"text\" id=\"cotnum\">
<br>
Job Wanted<br />
<select name=\"job_wants\">
<option value=\"Please Select A Job\">Please Select A Job</option>
<option value=\"Technician\">Technician</option>
<option value=\"Support\">Support</option>
<option value=\"Advertiser\">Advertiser</option>
<option value=\"Coder\">Coder</option>
</select>
<br />
Previous Experiance<br />
<textarea name=\"prevexp\" cols=\"50\" rows=\"8\"></textarea>
<br />
Reference (If Any)<br />
<textarea name=\"reference\" cols=\"50\" rows=\"8\"></textarea>
<br />
CV: (If Any)
<br />
Write CV (If Any)<br />
<textarea name=\"mycv_write\" cols=\"50\" rows=\"8\"></textarea>
<br />
<br />
Why Should WE Hire YOU?<br />
<textarea name=\"yhireu\" cols=\"50\" rows=\"8\"></textarea>
<br />
<label>Gender<br />
<select name=\"gender\">
<option value=\"Male\">Male</option>
<option value=\"Feamale\">Female</option>
<option value=\"Other\">Other</option>
</select>
</label>
<br />
<label>Address<br />
<textarea name=\"address\"></textarea>
</label>
<br />
<input type=\"submit\" value=\"Send!\">
</label>
<br />
</form>";
break;
case 'send':
$to = $formemail;
$subject = "Jobs $name";
$name = $_POST['name'];
$contactnum = $_POST['cotnum'];
$writecv = $_POST['mycv_write'];
$wswhy = $_POST['yhireu'];
$email = $_POST['email'];
$job = $_POST['job_wants'];
$ref = $_POST['reference'];
$gender = $_POST['gender'];
$address = $_POST['address'];
$prevexp = $_POST['prevexp'];
## NEXT PART IS FOR EMAILING!
$message = "Hello
Please Keep Me Updated!
Full Name: $name
Email Address: $email
Contact Number: $contactnum
My CV: $mycv_write
Previous Experiance: $prevexp
Why We Should Hire $name: $writecv
Job $name Wants: $job_wants
Reference: $ref
Gender: $gender
Address: $address";
$email_headers = 'From: $sitename JOBS SYSTEM' . "\r\n" .
'Reply-To: NO REPLY TO THIS SYTEM.' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $email_headers);
print "<center>Thankyou $name!<br />Your Details Were As Followed: <br />Full Name: $name<br />
Email Address: $email<br />
Contact Number: $contactnum<br />
My CV: $writecv<br />
Previous Experiance: $prevexp
Why We Should Hire $name: $wswhy<br />
Job $name Wants: $job<br />
Reference: $ref<br />
Gender: $gender<br />
Address: $address<br />";
break;
}
?>
<br />It Will Take Up To 48 Hours For A Reply!<br /><a href="$siteurl" />Back To Site...</a></center><br />
</b></font></center>


Try that.
There are a few spelling mistakes in your code. Ive changed what i could find :)

rh4u
17-11-2007, 07:11 PM
Iv edited my post, i forgot about the html at the bottom, god im tired.

Flashbox
17-11-2007, 07:15 PM
rh4u try the code in my previous comment. tell me what you think

rh4u
17-11-2007, 07:21 PM
Edited xD
Thanks ;)

<?php
###CONFIGURING FUNCTIONS
$sitename = "YOURSITENAME"; ##This is used to in the email that gets sent to you
$siteurl = "http://YOURSITE.COM"; ##NEEDED FOR FORM REDIRECTING. YOU MUST INCLUDE HTTP://
$formemail = "[email protected]"; ##WHERE THE SITE FORM WILL BE EMAILED TO
switch ($HTTP_GET_VARS[id]) {
default:
echo "<form name=\"jobs\" method=\"post\" action=\"";?><?php $_POST['SELF']?><?php echo"?id=send\">
<center><font face=\"Tahoma\" size=\"2\" color=\"black\"><b><label>Full Name<br />
<input name=\"name\" type=\"text\" id=\"name\">
</label>
<br />
<label>Email Address<br />
<input name=\"email\" type=\"text\" id=\"email\">
</label>
<br />
<label>Contact Number<br />
<input name=\"cotnum\" type=\"text\" id=\"cotnum\">
<br>
Job Wanted<br />
<select name=\"job_wants\">
<option value=\"Please Select A Job\">Please Select A Job</option>
<option value=\"Technician\">Technician</option>
<option value=\"Support\">Support</option>
<option value=\"Advertiser\">Advertiser</option>
<option value=\"Coder\">Coder</option>
</select>
<br />
Previous Experiance<br />
<textarea name=\"prevexp\" cols=\"50\" rows=\"8\"></textarea>
<br />
Reference (If Any)<br />
<textarea name=\"reference\" cols=\"50\" rows=\"8\"></textarea>
<br />
CV: (If Any)
<br />
Write CV (If Any)<br />
<textarea name=\"mycv_write\" cols=\"50\" rows=\"8\"></textarea>
<br />
<br />
Why Should WE Hire YOU?<br />
<textarea name=\"yhireu\" cols=\"50\" rows=\"8\"></textarea>
<br />
<label>Gender<br />
<select name=\"gender\">
<option value=\"Male\">Male</option>
<option value=\"Feamale\">Female</option>
<option value=\"Other\">Other</option>
</select>
</label>
<br />
<label>Address<br />
<textarea name=\"address\"></textarea>
</label>
<br />
<input type=\"submit\" value=\"Send!\">
</label>
<br />
</form>";
break;
case 'send':
$to = $formemail;
$subject = "Jobs $name";
$name = $_POST['name'];
$contactnum = $_POST['cotnum'];
$writecv = $_POST['mycv_write'];
$wswhy = $_POST['yhireu'];
$email = $_POST['email'];
$job = $_POST['job_wants'];
$ref = $_POST['reference'];
$gender = $_POST['gender'];
$address = $_POST['address'];
$prevexp = $_POST['prevexp'];
## NEXT PART IS FOR EMAILING!
$message = "Hello
Please Keep Me Updated!
Full Name: $name
Email Address: $email
Contact Number: $contactnum
My CV: $mycv_write
Previous Experiance: $prevexp
Why We Should Hire $name: $writecv
Job $name Wants: $job_wants
Reference: $ref
Gender: $gender
Address: $address";
$email_headers = 'From: $sitename JOBS SYSTEM' . "\r\n" .
'Reply-To: NO REPLY TO THIS SYTEM.' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $email_headers);
print "<center>Thankyou $name!<br />Your Details Were As Followed: <br />Full Name: $name<br />
Email Address: $email<br />
Contact Number: $contactnum<br />
My CV: $writecv<br />
Previous Experiance: $prevexp
Why We Should Hire $name: $wswhy<br />
Job $name Wants: $job<br />
Reference: $ref<br />
Gender: $gender<br />
Address: $address<br />
<br />It Will Take Up To 48 Hours For A Reply!<br /><a href=\"$siteurl\" />Back To Site...</a></center><br />
";
break;
}
?>
</b></font></center>
<center>Doms Jobs System :: Free Version. Get it from RH4U.co.uk NOW!</center>

Flashbox
17-11-2007, 07:23 PM
Can you post me a preview? I dont have a host to view it on lol.
I just quickly did it with notepad lol

rh4u
17-11-2007, 07:46 PM
mastersoundz.com/emailer.php

Flashbox
17-11-2007, 07:49 PM
oo it works :D

Luno1599
17-11-2007, 08:29 PM
:S have we gone offtopic or something?

Beau
17-11-2007, 08:51 PM
Erm...

1) $HTTP_GET_VARS is depreceated. Use $_GET instead.

2) You don't need to use a switch statement for something that simple. Just display the form, making sure it's been told to go to the same script when it's been submitted, and then at the top of your PHP script, check whether it's been submitted like so:



if(isset($_POST['submit)) {
That'll check whether the submit form variable (buttons have POST input too) is there. If it is, you can add the code to process underneath.

3) Validate your data. I tried sending something through the demo, and I only entered an address. Guess what? It still sent.



if(empty($_POST['name'])) {
echo 'You did not enter a name!';
}
else {
$name = $_POST['name'];
}


Do that for all the form fields.

rh4u
17-11-2007, 09:23 PM
yeah i know about that, im doin that in next version
first version was basicaly a 5 min job tbh

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