Jump to content

Recommended Posts

Hello Everyone,

 

I am new to PHP Freaks but the site looks great :) I have had an on going issue for a while now and I hope that you guys can help me with it because it is an issue that is now holding up my project.

 

I have been taksed with creating a simple vacancy submission section of the company website.  That is not so bad, the problem I have is that when someone selects the job from the list that they are interested in, I want them to be able to apply for that particular job.

 

So I have a link that says "apply" once you click on that it takes you to a submission form that will then be sent off to a recruitment consultant.  How can I make it so that when you click on apply, the form for submission automatically gets the name and reference number for that job and includes them in the form that the person is about to submit?

 

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/140006-vacancy-system/
Share on other sites

How are you storing the list of jobs?

How can I make it so that when you click on apply, the form for submission automatically gets the name and reference number for that job and includes them in the form that the person is about to submit?

If jobs are in a database, query it when you need it based on the reference number or something.

Link to comment
https://forums.phpfreaks.com/topic/140006-vacancy-system/#findComment-732498
Share on other sites

The apply button will have to use javascript to imitate a forum.submit then on the next page, depending on if the form is posted or get you would use $_POST['selectboxname'] to grab what the value was. Then use that value against the DB to pull out that information.

Link to comment
https://forums.phpfreaks.com/topic/140006-vacancy-system/#findComment-732501
Share on other sites

put the list of jobs into a php array, or database

 

but when the db info is infact in the array it should look like this:

 

Array (
  [0] => Array (
    [0] => Job Name 1
    [1] => Job Number 1
  )
  [1] => Array (
    [0] => Job Name 2
    [1] => Job Number 2
  )
)

then when publishing the job selections do

foreach ($jobs as $job) {
  list($name,$number) = $job;
  sprintf('<a href=\'javascript:doSubmit("%s","%s");\'>%1$s</a>',addslashes($name),addslashes($number));
}

 

then in your actual html have like

<script type="text/javascript">
  function doSubmit(name,num) {
    document.getElementsById("jobname").value = name;
    document.getElementsById("jobnum").value = num;
    document.getElementsById("jobform").submit();
  }
</script>

<form id="jobform" method="POST" action="apply.php">
  <input type="hidden" name="jobname" id="jobname" />
  <input type="hidden" name="jobnum" id="jobnum" />
</form>

Link to comment
https://forums.phpfreaks.com/topic/140006-vacancy-system/#findComment-732557
Share on other sites

How are you storing the list of jobs?

How can I make it so that when you click on apply, the form for submission automatically gets the name and reference number for that job and includes them in the form that the person is about to submit?

If jobs are in a database, query it when you need it based on the reference number or something.

 

My apologies I forgot to mention the storage type. All data is stored in a MySQL database :) thank you.

Link to comment
https://forums.phpfreaks.com/topic/140006-vacancy-system/#findComment-733161
Share on other sites

Thank you for the replies.  I have included some sorce code here because I think I will have trouble implementing the suggestions into my working code at this point in time.  Please have and I am open to suggestions as to how to incorporate RusselReals code or anyone elses for that matter.

 

The following code is for the job specifics page, this is the page that people see when they click on a job to view more indepth information:

 

<?php

include 'library/configuration.php';

include 'library/opendatabase.php';

 

// If no id is specified, list the available jobs

if(!isset($_GET['id']))

{

$self  = $_SERVER['PHP_SELF'];

 

//The data we will be talking to.

$query  = "SELECT id, jobtitle, jobtype, area, salary, qualifications, skills, jobdescription FROM jobpost ORDER BY id";

$result = mysql_query($query) or die('Error : ' . mysql_error());

 

// create the job list

while($row = mysql_fetch_array($result, MYSQL_NUM))

{

//defines what data pull should be displayed in the table.

list($id, $jobtitle, $jobtype, $area, $salary, $qualifications, $skills, $jobdescription) = $row;

$content .= "<li><a href=\"$self?id=$id\">$jobtitle</a></li>\r\n";

}

 

$title  = 'Jobs';

} else {

// Pull the jobs from the database

$query  = "SELECT jobtitle, jobtype, area, jobdescription, salary, qualifications, skills FROM jobpost WHERE id=".$_GET['id'];

$result  = mysql_query($query) or die('Error : ' . mysql_error());

$row    = mysql_fetch_array($result, MYSQL_ASSOC);

 

 

//Jobs to list

$jobtitle  = $row['jobtitle'];

$jobtype = $row['jobtype'];

$area = $row['area'];

$salary  = $row['salary'];

$qualifications  = $row['qualifications'];

$skills  = $row['skills'];

$jobdescription = $row['jobdescription'];

}

 

include 'library/closedatabase.php';

?>

<?php

include 'library/config.php';

include 'library/opendb.php';

 

if(isset($_GET['del']))

{

// remove the article from the database

$query = "DELETE FROM jobpost WHERE id = '{$_GET['del']}'";

mysql_query($query) or die('Error : ' . mysql_error());

 

// then remove the cached file

$cacheDir  = dirname(__FILE__) . '/cache/';

$cacheFile = $cacheDir . '_' . $_GET['id'] . '.html';

 

@unlink($cacheFile);

 

// and remove the jobsposted.php too because the file list

// is changed

@unlink($cacheDir . 'jobsposted.php');

 

// redirect to current page so when the user refresh this page

// after deleting an article we won't go back to this code block

header('Location: ' . $_SERVER['PHP_SELF']);

exit;

}

?>

<html>

<head>

<title><?php echo $title;?></title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<link href="vacancy_style.css" rel="stylesheet" type="text/css">

<script language="JavaScript">

function delArticle(id, jobtitle)

{

if (confirm("Yay'" + jobtitle + "'"))

{

window.location.href = 'jobspecific.php?del=' + id;

}

}

</script>

</head>

<body>

 

 

<table width="65%" border="0" align="center" cellpadding="10" cellspacing="0">

<table width="490" border="0" align="center" cellpadding="5" cellspacing="5" bgcolor="#fafafa" class="tblb">

  <tr>

    <td colspan="3" bgcolor="#dbdbdb"><h2><?php echo $jobtitle; ?></h2></td>

  </tr>

  <tr>

    <td width="102"><p>Job Ref:</p></td>

    <td colspan="2" bgcolor="#dbdbdb"><p>JOB00SH<?php echo $id; ?></p></td>

  </tr>

  <tr>

    <td><p>Type:</p></td>

    <td colspan="2" bgcolor="#dbdbdb"><p><?php echo $jobtype; ?></p></td>

  </tr>

  <tr>

    <td><p>Area:</p></td>

    <td colspan="2" bgcolor="#dbdbdb"><p><?php echo $area; ?></p></td>

  </tr>

  <tr>

    <td><p>Salary:</p></td>

    <td colspan="2" bgcolor="#dbdbdb"><p><?php echo $salary; ?></p></td>

  </tr>

  <tr>

    <td><p>Qualifications:</p></td>

    <td colspan="2" bgcolor="#dbdbdb"><p><?php echo $qualifications; ?></p></td>

  </tr>

  <tr>

    <td><p>Skills:</p></td>

    <td colspan="2" bgcolor="#dbdbdb"><p><?php echo $skills; ?></p></td>

  </tr>

  <tr>

    <td><p>Job Description:</p></td>

    <td colspan="2" bgcolor="#dbdbdb"><p><?php echo $jobdescription; ?></p></td>

  </tr>

  <tr>

    <td> </td>

    <td colspan="2"> </td>

  </tr>

  <tr>

    <td></td>

    <td width="199"></td>

    <td width="139"><p><a href="apply.php?id=<?php echo $id;?><br><?php echo $jobtitle;?>" target="_self" class="one">Apply</a></p></td>

  </tr>

  <tr>

    <td> </td>

    <td> </td>

    <td><a href="jobsposted.php" target="_self" class="one"><p>Job List</p></a></td>

  </tr>

  <tr>

    <td> </td>

    <td> </td>

    <td><a href="javascript:delArticle('<?php echo $id;?>', '<?php echo $jobtitle;?>');" target="_self" class="one"><p>Delete</p></a></td>

  </tr>

</table>

<p> </p>

 

</body>

</html>

 

From this page I need the apply button to perform the actions you have suggested but I will need some stern advise on how to achieve this.

Link to comment
https://forums.phpfreaks.com/topic/140006-vacancy-system/#findComment-733164
Share on other sites

please use code tags on any code including html, javascript, and of course php when it is more than one line (or even when it is one line if you'd like). Makes it much easier to read.

I didn't make any changed, just posting what you did in code tags for reading purposes.

<?php
include 'library/configuration.php';
include 'library/opendatabase.php';

// If no id is specified, list the available jobs
if(!isset($_GET['id']))
{
   $self   = $_SERVER['PHP_SELF'];
   
   //The data we will be talking to.
   $query  = "SELECT id, jobtitle, jobtype, area, salary, qualifications, skills, jobdescription FROM jobpost ORDER BY id";
   $result = mysql_query($query) or die('Error : ' . mysql_error());
   
   // create the job list
   while($row = mysql_fetch_array($result, MYSQL_NUM))
   {
   //defines what data pull should be displayed in the table.
   list($id, $jobtitle, $jobtype, $area, $salary, $qualifications, $skills, $jobdescription) = $row;
   $content .= "<li><a href=\"$self?id=$id\">$jobtitle</a></li>\r\n";
   }
   
   $title   = 'Jobs';
} else {
   // Pull the jobs from the database
   $query   = "SELECT jobtitle, jobtype, area, jobdescription, salary, qualifications, skills FROM jobpost WHERE id=".$_GET['id'];
   $result  = mysql_query($query) or die('Error : ' . mysql_error());
   $row     = mysql_fetch_array($result, MYSQL_ASSOC);


   //Jobs to list
   $jobtitle   = $row['jobtitle'];
   $jobtype = $row['jobtype'];
   $area = $row['area'];
   $salary   = $row['salary'];
   $qualifications   = $row['qualifications'];
   $skills   = $row['skills'];
   $jobdescription = $row['jobdescription'];
}   

include 'library/closedatabase.php';
?>
<?php
include 'library/config.php';
include 'library/opendb.php';

if(isset($_GET['del']))
{
   // remove the article from the database
   $query = "DELETE FROM jobpost WHERE id = '{$_GET['del']}'";
   mysql_query($query) or die('Error : ' . mysql_error());
   
   // then remove the cached file
   $cacheDir  = dirname(__FILE__) . '/cache/';
   $cacheFile = $cacheDir . '_' . $_GET['id'] . '.html';
   
   @unlink($cacheFile);
   
   // and remove the jobsposted.php too because the file list
   // is changed
   @unlink($cacheDir . 'jobsposted.php');
   
   // redirect to current page so when the user refresh this page
   // after deleting an article we won't go back to this code block
   header('Location: ' . $_SERVER['PHP_SELF']);
   exit;
}
?>
<html>
<head>
<title><?php echo $title;?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="vacancy_style.css" rel="stylesheet" type="text/css">
<script language="JavaScript">
function delArticle(id, jobtitle)
{
   if (confirm("Yay'" + jobtitle + "'"))
   {
      window.location.href = 'jobspecific.php?del=' + id;
   }
}
</script>
</head>
<body>


<table width="65%" border="0" align="center" cellpadding="10" cellspacing="0">
<table width="490" border="0" align="center" cellpadding="5" cellspacing="5" bgcolor="#fafafa" class="tblb">
  <tr>
    <td colspan="3" bgcolor="#dbdbdb"><h2><?php echo $jobtitle; ?></h2></td>
  </tr>
  <tr>
    <td width="102"><p>Job Ref:</p></td>
    <td colspan="2" bgcolor="#dbdbdb"><p>JOB00SH<?php echo $id; ?></p></td>
  </tr>
  <tr>
    <td><p>Type:</p></td>
    <td colspan="2" bgcolor="#dbdbdb"><p><?php echo $jobtype; ?></p></td>
  </tr>
  <tr>
    <td><p>Area:</p></td>
    <td colspan="2" bgcolor="#dbdbdb"><p><?php echo $area; ?></p></td>
  </tr>
  <tr>
    <td><p>Salary:</p></td>
    <td colspan="2" bgcolor="#dbdbdb"><p><?php echo $salary; ?></p></td>
  </tr>
  <tr>
    <td><p>Qualifications:</p></td>
    <td colspan="2" bgcolor="#dbdbdb"><p><?php echo $qualifications; ?></p></td>
  </tr>
  <tr>
    <td><p>Skills:</p></td>
    <td colspan="2" bgcolor="#dbdbdb"><p><?php echo $skills; ?></p></td>
  </tr>
  <tr>
    <td><p>Job Description:</p></td>
    <td colspan="2" bgcolor="#dbdbdb"><p><?php echo $jobdescription; ?></p></td>
  </tr>
  <tr>
    <td> </td>
    <td colspan="2"> </td>
  </tr>
  <tr>
    <td></td>
    <td width="199"></td>
    <td width="139"><p><a href="apply.php?id=<?php echo $id;?><br><?php echo $jobtitle;?>" target="_self" class="one">Apply</a></p></td>
  </tr>
  <tr>
    <td> </td>
    <td> </td>
    <td><a href="jobsposted.php" target="_self" class="one"><p>Job List</p></a></td>
  </tr>
  <tr>
    <td> </td>
    <td> </td>
    <td><a href="javascript:delArticle('<?php echo $id;?>', '<?php echo $jobtitle;?>');" target="_self" class="one"><p>Delete</p></a></td>
  </tr>
</table>
<p> </p>

</body>
</html>

Link to comment
https://forums.phpfreaks.com/topic/140006-vacancy-system/#findComment-733447
Share on other sites

This is the code for the page that actually displays the job. What you would do is actually click on apply and then you would get the information I was talking about for the form.

 

<?php
include 'library/configuration.php';
include 'library/opendatabase.php';

// If no id is specified, list the available jobs
if(!isset($_GET['id']))
{
$self   = $_SERVER['PHP_SELF'];

//The data we will be talking to.
$query  = "SELECT id, jobtitle, jobtype, area, salary, qualifications, skills, jobdescription FROM jobpost ORDER BY id";
$result = mysql_query($query) or die('Error : ' . mysql_error()); 

// create the job list
while($row = mysql_fetch_array($result, MYSQL_NUM))
{
//defines what data pull should be displayed in the table.
list($id, $jobtitle, $jobtype, $area, $salary, $qualifications, $skills, $jobdescription) = $row;
$content .= "<li><a href=\"$self?id=$id\">$jobtitle</a></li>\r\n";
}

$title   = 'Jobs';
} else {
// Pull the jobs from the database
$query   = "SELECT jobtitle, jobtype, area, jobdescription, salary, qualifications, skills FROM jobpost WHERE id=".$_GET['id'];
$result  = mysql_query($query) or die('Error : ' . mysql_error()); 
$row     = mysql_fetch_array($result, MYSQL_ASSOC); 


//Jobs to list
$jobtitle   = $row['jobtitle'];
$jobtype = $row['jobtype'];
$area = $row['area'];
$salary   = $row['salary'];
$qualifications   = $row['qualifications'];
$skills   = $row['skills'];
$jobdescription = $row['jobdescription'];
}	

include 'library/closedb.php';
?>
<?php
include 'library/configuration.php';
include 'library/opendatabase.php';

if(isset($_GET['del']))
{
// remove the article from the database
$query = "DELETE FROM jobpost WHERE id = '{$_GET['del']}'";
mysql_query($query) or die('Error : ' . mysql_error());

// then remove the cached file
$cacheDir  = dirname(__FILE__) . '/cache/';
$cacheFile = $cacheDir . '_' . $_GET['id'] . '.html';

@unlink($cacheFile);

// and remove the jobsposted.php too because the file list
// is changed
@unlink($cacheDir . 'jobsposted.php');

// redirect to current page so when the user refresh this page
// after deleting an article we won't go back to this code block
header('Location: ' . $_SERVER['PHP_SELF']);
exit;
}
?>
<html>
<head>
<title><?php echo $title;?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script language="JavaScript">
function delArticle(id, jobtitle)
{
if (confirm("WOAH Hang on a moment you Pirate Hooker '" + jobtitle + "'"))
{
	window.location.href = 'jobspecific.php?del=' + id;
}
}
</script>
</head>
<body>


<table width="65%" border="0" align="center" cellpadding="10" cellspacing="0">
<table width="490" border="0" align="center" cellpadding="5" cellspacing="5">
  <tr>
    <td colspan="3"><?php echo $jobtitle; ?></td>
  </tr>
  <tr>
    <td width="102">Job Ref:</td>
    <td colspan="2">JOB00SH<?php echo $id; ?></td>
  </tr>
  <tr>
    <td>Type:</td>
    <td colspan="2"><?php echo $jobtype; ?></td>
  </tr>
  <tr>
    <td>Area:</td>
    <td colspan="2" ><?php echo $area; ?></td>
  </tr>
  <tr>
    <td>Salary:</td>
    <td colspan="2"><?php echo $salary; ?></td>
  </tr>
  <tr>
    <td>Qualifications:</td>
    <td colspan="2"><?php echo $qualifications; ?></td>
  </tr>
  <tr>
    <td>Skills:</td>
    <td colspan="2"><?php echo $skills; ?></td>
  </tr>
  <tr>
    <td>Job Description:</td>
    <td colspan="2" ><?php echo $jobdescription; ?></td>
  </tr>
  <tr>
    <td> </td>
    <td colspan="2"> </td>
  </tr>
  <tr>
    <td></td>
    <td width="199"></td>
    <td width="139"><a href="apply.php?id=<?php echo $id;?>" class="one">Apply</a></td>
  </tr>
  <tr>
    <td> </td>
    <td> </td>
    <td><a href="jobsposted.php" target="_self" class="one">Job List</a></td>
  </tr>
  <tr>
    <td> </td>
    <td> </td>
    <td><a href="javascript:delArticle('<?php echo $id;?>', '<?php echo $jobtitle;?>');" target="_self" class="one">Delete</a></td>
  </tr>
</table>
</body>
</html>

 

The application form

 

<?php
include 'library/configuration.php';
include 'library/opendatabase.php';

if(isset($_GET['id']))
{
$query = "SELECT id, jobtitle FROM jobpost WHERE id = '{$_GET['id']}'";
$result = mysql_query($query) or die('Error : ' . mysql_error());
list($id, $jobtitle) = mysql_fetch_array($result, MYSQL_NUM);

} 
else if(isset($_POST['title']))
{
    $id      = $_POST['id'];
$jobtitle   = $_POST['jobtitle'];
}

include 'library/closedatabase.php';
?>
<?php

   if ($_SERVER['REQUEST_METHOD']=="POST"){
   $to="allan@bevrecruitment.com"; // Recipient Listing
   $subject="CV - Website Submission"; //Subject Line
   $from = stripslashes($_POST['fname'])."<".stripslashes($_POST['fromemail']).">"; // Client Name and Email variables with slashes removed.

   // Random string to be used as the boundary marker
   $mime_boundary="==Multipart_Boundary_x".md5(mt_rand())."x";

   // store the file information to variables for easier access
   $tmp_name = $_FILES['filename']['tmp_name'];
   $type = $_FILES['filename']['type'];
   $name = $_FILES['filename']['name'];
   $size = $_FILES['filename']['size'];

   // HTML Coded Email message sorted data into a table.
   $message = '   
   <table width="450" border="0" cellspacing="1" cellpadding="40">
<tr>
<td bgcolor="430c0c"><table cellspacing="1" cellpadding="8" border="0" width="400">
<tr>
<td colspan="2"></td>
</tr>
<tr bgcolor="#eeeeee">
<td colspan="2" bgcolor="cd010d" style="font-family:Verdana, Arial; font-size:18px; color:#ffffff;"><strong>Application Form</strong></td></tr><tr bgcolor="#eeeeee">
<td bgcolor="cd010d" style="font-family:Verdana, Arial; font-size:11px; color:#ffffff;"><strong>First Name:</strong></td>
<td bgcolor="9e010d" style="font-family:Verdana, Arial; font-size:11px; color:#ffffff;">'.$fname.'</td>
</tr>
<tr bgcolor="#eeeeee">
<td bgcolor="cd010d" style="font-family:Verdana, Arial; font-size:11px; color:#ffffff;"><strong>Last Name:</strong></td>
<td bgcolor="9e010d" style="font-family:Verdana, Arial; font-size:11px; color:#ffffff;">'.$lname.'</td>
</tr>
<tr bgcolor="#eeeeee">
<td bgcolor="cd010d" style="font-family:Verdana, Arial; font-size:11px; color:#ffffff;"><strong>Email Address:</strong></td>
<td bgcolor="9e010d" style="font-family:Verdana, Arial; font-size:11px; color:#ffffff;">'.$fromemail.'</td>
</tr>
<tr bgcolor="#eeeeee">
<td bgcolor="cd010d" style="font-family:Verdana, Arial; font-size:11px; color:#ffffff;"><strong>Expected Salary:</strong></td>
<td bgcolor="9e010d" style="font-family:Verdana, Arial; font-size:11px; color:#ffffff;">'.$element_6.'</td>
</tr>
<tr bgcolor="#eeeeee">
<td bgcolor="cd010d" style="font-family:Verdana, Arial; font-size:11px; color:#ffffff;"><strong>Skill Set:</strong></td>
<td bgcolor="9e010d" style="font-family:Verdana, Arial; font-size:11px; color:#ffffff;">'.$element_7.'</td>
</tr>
<tr bgcolor="#eeeeee">
<td colspan="2" bgcolor="9e010d" style="font-family:Verdana, Arial; font-size:11px; color:#ffffff;">'.$comments.'</td>
</tr>
<tr bgcolor="#eeeeee">
<td colspan="2" bgcolor="9e010d" style="font-family:Verdana, Arial; font-size:11px; color:#ffffff;"><div align="center">Test</div></td>
</tr>
</table>
</td>
</tr>
</table>';

   	//If the upload succededs, the file will exist
if (file_exists($tmp_name)){

    //Check uploaded file and not a system file
if(is_uploaded_file($tmp_name)){

    //Open the file for a binary read
$file = fopen($tmp_name,'rb');

//Read the file content into a variable
$data = fread($file,filesize($tmp_name));

//Close File
    fclose($file);

    //Data Chunk Split
$data = chunk_split(base64_encode($data));
    }

//Build the message headers
    $headers = 	"From: $from\r\n" .
    		    "MIME-Version: 1.0\r\n" .
			"Content-Type: multipart/mixed;\r\n" .
			" boundary=\"{$mime_boundary}\"";

//Build the message body
    $message = "This is a multi-part message in MIME format.\n\n" .
         "--{$mime_boundary}\n" .
         "Content-Type: text/html; charset=\"iso-8859-1\"\n" .
         "Content-Transfer-Encoding: 7bit\n\n" .
         $message . "\n\n";

//Insert Boundary
    $message .= "--{$mime_boundary}\n" .
         		"Content-Type: {$type};\n" .
			" name=\"{$name}\"\n" .
//"Content-Disposition: attachment;\n" .
//" filename=\"{$fileatt_name}\"\n" .
         "Content-Transfer-Encoding: base64\n\n" .
$data . "\n\n" .
    	    "--{$mime_boundary}--\n";
//Mail Send
      if(@mail($to, $subject, $message, $headers))

echo "<p>Thank you for submitting";
  else
echo "ERROR: Your CV and details have failed to send.  This might be due to a network fault. Please try again.";
   }
} else {
?>
</head>
<body leftmargin="0" topmargin="10" marginwidth="0">
<br>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"></table>
<td align="center" valign="top"></td>
  	<table width="458" border="0" cellpadding="0" cellspacing="3" id="Welcome2">
  	  <tr>
  	    <td width="452" height="257" align="left" valign="top"><!-- Form Start -->
  	      <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" enctype="multipart/form-data" name="form1">
  	        <table width="286" border="0" cellspacing="0" cellpadding="3">
  	          <tr>
  	            <td>Job Title</td>
  	            <td><input name="jobtitle" type="text" disabled="disabled" class="box" value="<?=$jobtitle;?>" readonly="readonly"></td>
              </tr>
  	          <tr>
  	            <td>Ref:</td>
  	            <td><input name="reference" type="text" disabled="disabled" class="box" value="JOB00SH<?=$id;?>" readonly="readonly"></td>
              </tr>
  	          <tr>
  	            <!-- First Name -->
  	            <td><p class="formfont">First Name:</p></td>
  	            <td><input name="fname" type="text" class="box"></td>
              </tr>
  	          <tr>
  	            <!-- Last Name -->
  	            <td><p class="formfont">Last Name:</p></td>
  	            <td><input class="box" type="text" name="lname" /></td>
              </tr>
  	          <tr>
  	            <!-- Email Address -->
  	            <td><p class="formfont">E-mail:</p></td>
  	            <td><input class="box" type="text" name="fromemail" /></td>
              </tr>
  	          <tr>
  	            <!-- Attach CV -->
  	            <td><p class="formfont">Attach CV:</p></td>
  	            <td><input class="box" type="file" name="filename" /></td>
              </tr>
  	          <tr>
  	            <!-- Salary Options -->
  	            <td><p class="formfont">Salary:</p></td>
  	            <td><select class="redopt" id="element_6" name="element_6">
  	              <option value="<20k" selected="selected">< 20k</option>
  	              <option value="21-30k">21-30k</option>
  	              <option value="31-40k">31-40k</option>
  	              <option value="41-50k">41-50k</option>
  	              <option value="51-60k"><51-60k</option>
  	              <option value="60k">>60k</option>
              </select></td>
              </tr>
  	          <tr>
  	            <!-- Skill Options -->
  	            <td><p class="formfont">Skill Set:</p></td>
  	            <td><select class="redopt" id="element_7" name="element_7">
  	              <option value="Administration" selected="selected" >Administration</option>
  	              <option value="Commercial/Financial/Legal" >Commercial/Financial/Legal</option>
  	              <option value="Design" >Design</option>
  	              <option value="Drilling" >Drilling</option>
  	              <option value="Engineering" >Engineering</option>
  	              <option value="Environment" >Environment</option>
  	              <option value="Geoscience" >Geoscience</option>
  	              <option value="Graduates" >Graduates</option>
  	              <option value="Health & Safety" >Health & Safety</option>
  	              <option value="HR/Personnel/Training" >HR/Personnel/Training</option>
  	              <option value="IT/Communications" >IT/Communications</option>
  	              <option value="Logistics/Procurement" >Logistics/Procurement</option>
  	              <option value="Management" >Management</option>
  	              <option value="Marine/Diving/ROV" >Marine/Diving/ROV</option>
  	              <option value="Operations(Other)" >Operations(Other)</option>
  	              <option value="Quality/Inspection" >Quality/Inspection</option>
  	              <option value="Sales/Marketing" >Sales/Marketing</option>
  	              <option value="Science(Other)" >Science(Other)</option>
  	              <option value="Technician" >Technician</option>
  	              <option value="Terminal/Refinery/Distribution" >Terminal/Refinery/Distribution</option>
  	              <option value="Trades" >Trades</option>
  	              <option value="Other" >Other</option>
  	              <option value="No Experience" >No Relevant Skill/Experience Yet</option>
              </select></td>
              </tr>
  	          <tr>
  	            <!-- Comments -->
  	            <td align="left" valign="top"><p class="formfont">Comments:</p></td>
  	            <td><textarea name="comments" cols="35" rows="5" class="redtxt" id="comments"></textarea></td>
              </tr>
  	          <tr>
  	            <td> </td>
  	            <td><input name="Submit" type="submit" class="red" value="submit" />
  	              <input name="Reset" type="reset" class="red" value="reset" /></td>
              </tr>
            </table>		<?php } ?>
          </form>
          
  	      <!-- Form End --></td>
      </tr>
</table>
</body>
</html>

Link to comment
https://forums.phpfreaks.com/topic/140006-vacancy-system/#findComment-735157
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.