Php in div style
Posted: Thu Jun 10, 2010 5:18 am
Can anyone see where im going wrong with the following code? I get this error
[text]Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /disks/diskh/zco/codrb/public_html/form.php on line 45[/text]
the variables height and width are in the from 1024px
Thanks
Dunk
[text]Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /disks/diskh/zco/codrb/public_html/form.php on line 45[/text]
Code: Select all
echo'<div style="position: absolute; left:'$width'; top:'$height'; width: 1024px;">';Thanks
Dunk