<?php
if (isset($_POST)) {
$food = $_POST['food'];
$job = $_POST['job'];
$adjective = $_POST['adj'];
$phrase = $_POST['phrase'];
$animal = $_POST['animal'];
$verb = $_POST['verb'];
$place = $_POST['place'];
$celebrity = $_POST['celebrity'];
$buy = $_POST['buy'];
$thing = $_POST['thing'];
$month = $_POST['month'];
echo Hi my name is '.$celebrity.', but my friends call me '.$adj.''.$food.' My favorite color is the color of '.$thing.' </br>
my favorite thing to undertake is '.$believe.' My parents were a '.$animal.' in addition to a '.$job.', which is why we lived in '.$place.' ; </br>
You probably know me from my TV commercial advertising '.$buy.' I'm the one who says, '.$phrase.' at the end '.$month.''s newspaper. ; </br>
}
?>
I'm a newbie to PHP, creating a Madlib PHP asignment. However I keep getting this error:
Parse error: syntax error, unexpected 'my' (T_STRING), expecting ',' or ';' - on line 17 (below)
Hi my name is '.$celebrity.', but my friends call me '.$adj.''.$food.' My favorite color is the color of '.$thing.'
I attempted to fix it with everything I've learned so far, within 2 weeks, but have had no luck. It' probably a mistake I haven't learned yet.
Thank you for any help