Jump to content

_post .... help ... grrr


imarockstar

Recommended Posts

im trying to send an email .. and within the MESSAGE i need to add some post data ... and somt text .. but I cant figure out how to include both ..

 

here is my current code :

 

 

   $date = $_POST["date"];
   $resumeid = $_POST["resumeid"];
   $recid = $_POST["recid"];
   $jobtitle = $_POST["jobtitle"];
   $title = $_POST["title"];
   $jobid = $_POST["jobid"];
   $fname = $_POST["fname"];
   $lname = $_POST["lname"];
   $address = $_POST["address"];
   $city = $_POST["city"];
   $state = $_POST["state"];
   $zipcode = $_POST["zipcode"];
   $phone1 = $_POST["phone1"];
   $phone2 = $_POST["phone2"];
   $email = $_POST["email"];
   $salary = $_POST["salary"];
   $rate = $_POST["rate"];
   $eligibility = $_POST["eligibility"];
   $travel = $_POST["travel"];
   $startdate = $_POST["startdate"];
   $notice = $_POST["notice"];
   $heard = $_POST["heard"];
   $resume = $_POST["resume"];
   $comments = $_POST["comments"];
   
   // the recruiter that gets emailed
   $recruiter = $_POST['recruiter'];
   $catchall = $_POST['catchall'];
   
   //Insert the values into the correct database with the right fields
   //mysql table = news
   //table columns = id, title, message, who, date, time
   //post variables = $title, $message, '$who, $date, $time
   
   $result=MYSQL_QUERY("INSERT INTO resume (date,resumeid,recid,jobtitle,title,jobid,fname,lname,address,city,state,zipcode,phone1,phone2,email,salary,rate,eligibility,travel,startdate,notice,heard,resume,comments)".
      "VALUES ('$date','$resumeid','$recid','$jobtitle','$title','$jobid','$fname','$lname','$address', '$city','$state','$zipcode','$phone1','$phone2','$email','$salary','$rate','$eligibility','$travel','$startdate','$notice','$heard','$resume','$comments')"); 



//define the receiver of the email
$to = $_POST['recruiter'];
//$to = 'bobby@franklinspirko.net';

//$cc = 'jack@franklinspirko.com';

//define the subject of the email
$subject = 'Your Dataworkforce Job Posting'; 

//define the message to be sent. Each line should be separated with \n
$message =  ' text text text '{$_POST['jobtitle']}' ' ;

 

this is the section of the code im having trouble with ...

 

//define the message to be sent. Each line should be separated with \n
$message =  ' text text text '{$_POST['jobtitle']}' ' ;

 

here is the error :

 

Parse error: syntax error, unexpected '{' in /home/franklin/public_html/sites/dwf/resume_insert.php on line 63

 

 

 

 

 

 

 

 

Link to comment
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.