Hi,
I keep getting this error when filling out my form and calling process.php:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home3/waterfor/public_html/process.php on line 1
all I did was move around some of the variable names in the php code. It was working fine just a second before that.
Here is my php code:
<? $firstname=$_POST['fname']; $email=$_POST['email']; $lastname=$_POST['lname']; $address=$_POST['address1']; $addressii=$_POST['address2']; $state=$_POST['state']; $zip=$_POST['zip']; $phone=$_POST['phone1']; $phoneii=$_POST['phone2']; $advertising=$_POST['advertising']; $otherjobtype=$_POST['otherjobtype']; $jobtype=$_POST['jobtype']; $objective=$_POST['objective']; $resume=$_POST['resume']; $weekendavail=$_POST['weekend_shift']; $nightavail=$_POST['night_shift']; $pt_ft=$_POST['shift_preference']; mysql_connect("localhost", "admin", "pwd") or die(mysql_error()); mysql_select_db("app1") or die(mysql_error()); mysql_query("INSERT INTO `data` VALUES ('$firstname', '$lastname', '$email', '$address', '$addressii', '$state', '$zip', '$phone', '$phoneii', '$advertising', '$jobtype', '$otherjobtype', '$nightavail', '$weekendavail', '$pt_ft', '$objective', '$resume')"); Print "Thank you for your resume. Your information has been successfully added to the database and will be reviewed by a hiring representative. Please continue to explore our site for more opportunities."; ?>
can anyone help?