Topic: How to store applicant name and email address?
When people come to the site and apply for a job, I know that the job id, ip address and datestamp are written to the job_applications table.
I'd like to also store the user's name and email address when someone submits an application.
I've added two fields to the job_applications table:
user_email
user_name
but I'm having trouble with my insert statement within class.JobApplication.php
I know I need to alter line 33 to read:
$sql = 'INSERT INTO job_applications (job_id, created_on, ip, user_email, user_name)
but I don't know how to correctly insert the variables from the $data array that is created in page_apply.php
Can anyone provide a little direction . . . I'm guessing it should look something like:
VALUES (' . $this->mJobId . ', NOW(), "' . $ip . '", "' . emailvariablegoeshere . '", "' . namevariablegoeshere . '")';
Any help you can provide would be appreciated.
Thanks!
