Strange output

I'M reading the book "PHP 5/MySQL Programming for the absolute beginner" and I'M only in the second chapter. One of the examples in the book is giving me a strange output. Please read.

--errorPage--
[color=Red]Your Output
"; print $basicText; print ""; ?>[/color]
--errorPage--

--html--
[code]

Border Maker


Border Maker

Demonstrates how to read HTML form elements


Text to modify

Four score and seven years ago our fathers brought forth on this
continent a new nation, conceived in liberty and dedicated to the
proposition that all men are created equal. Now we are engaged in a
great civil war, testing whether that nation or any nation so
conceived and so dedicated can long endure.

Border style

Border Size



ridge
groove
double
inset
outset





1
2
3
5
10


pixels

points

centimeters

inches








[/code]
--html--

--php--
[code]

Your Output

Your Output


<?
$theStyle = <<<HERE
"border-width:$borderSize$sizeType;
border-style:$borderStyle;
border-color:green"
HERE;

print "<div style = $theStyle>";
print $basicText;
print "";

?>



[/code]
--php--

So can anyone please help me out here? Thanks.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories