imarockstar Posted August 25, 2008 Share Posted August 25, 2008 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 = '[email protected]'; //$cc = '[email protected]'; //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 https://forums.phpfreaks.com/topic/121298-_post-help-grrr/ Share on other sites More sharing options...
DarkWater Posted August 25, 2008 Share Posted August 25, 2008 $message = "text text text {$_POST['jobtitle']}"; Link to comment https://forums.phpfreaks.com/topic/121298-_post-help-grrr/#findComment-625333 Share on other sites More sharing options...
imarockstar Posted August 25, 2008 Author Share Posted August 25, 2008 thnk you kind sir ... learn somthing new every day !!!!! Link to comment https://forums.phpfreaks.com/topic/121298-_post-help-grrr/#findComment-625335 Share on other sites More sharing options...
DarkWater Posted August 25, 2008 Share Posted August 25, 2008 No problem. Link to comment https://forums.phpfreaks.com/topic/121298-_post-help-grrr/#findComment-625336 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.