Hi!
So I've got I group of php code for a form. Below:
<?php
$full_name = filter_input[INPUT_POST, 'full_name'];
$phone = filter_input[INPUT_POST, 'phone'];
$email = filter_input[INPUT_POST, 'email'];
$type-of-property = filter_input(INPUT_POST, 'type-of-property’);
$property_address = filter_input[INPUT_POST, 'property_address '];
$price_range = filter_input[INPUT_POST, ‘price_range’];
$ideal-number-of-bedrooms = filter_input[INPUT_POST, ‘ideal-number-of-bedrooms’];
$ideal-number-of-bathrooms = filter_input[INPUT_POST, ‘ideal-number-of-bathrooms’];
$are-you-preapproved-for-a-mortgage = filter_input[INPUT_POST, ‘are-you-preapproved-for-a-mortgage’];
if ($are-you-preapproved-for-a-mortgage = yes ) {echo “$Pre-approvalAmount";}
$type-of-parking-you-need = filter_input[INPUT_POST, ‘type-of-parking-you-need’];
$expected-timeline-for-buying = filter_input[INPUT_POST, ‘expected-timeline-for-buying’];
$neighborhoods-or-zip-codes-youd-like-to-explore = filter_input[INPUT_POST, ‘neighborhoods-or-zip-codes-youd-like-to-explore’];
$what-do-you-want-the-most-in-your-dream-home = filter_input[INPUT_POST, ‘what-do-you-want-the-most-in-your-dream-home’];
And the only error that's come up consistently is Parse error: syntax error, unexpected token ",", expecting "]" in file on line 2
Errors parsing file.
It's confusing because only that line has come up in error, when the formatting seems to be the same as the other lines. Help please