- Original Poster
- #1
Hi, can someone please help with the following php code for a form output that i'm working on.
Below is the following from a php checker, but I cannot see the error.
I get a blank page output when trying to run the code when uploaded!
Parse error: syntax error, unexpected T_STRING in CODE on line 10 Errors parsing CODE
Below is the following from a php checker, but I cannot see the error.
I get a blank page output when trying to run the code when uploaded!
Parse error: syntax error, unexpected T_STRING in CODE on line 10 Errors parsing CODE
- <?php
- $length = $_POST['length'];
- $width = $_POST['width'];
- $height = $_POST['height'];
- $weight = $_POST['weight'];
- $discountcode = $_POST['discountcode'];
- if (!isset($_POST['submit'])) // if page is not submitted to itself echo the form
- "<div style="color: #FFFFFF;">Your quote for the following Small Parcel with the dimensions as follows:<br />". $length . " \" . " Length x " . $width . " " . " Width x " . $height . " " . " Height x " . $weight . " " . " Weight . " " . $discountcode . " " . " Discount Code. "</div>";<br />
- echo "<div style="color: #FFFFFF;">£12.00 inc vat. Complete the form to Book.</div>"; <br />
- ?>