[SOLVED] Syntax Woes
Posted: Tue Oct 12, 2004 8:05 am
twigletmac | Help us, help you. Please use
Code: Select all
andCode: Select all
tags where approriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
I am getting "Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /usr/wwws/users/faog/staffpages/sp_label_maker.php on line 181" error.
the line being pointed at is the if statement.Code: Select all
$fsize = "<select name='fsize'><option>12</option>";
for($j=8; $j <= 29; $j++)
{
$fsize .= "<option>".$j."</option>";
}
$fsize .= "</select>";
$body = "<tr>\n";
for($i=1; $i <= 5; $i++)
{
$temp = "form_varsї'title".$i."']";
if($$temp != '')
$body .= "<td colspan='3'>Line ".$i.": <input type='text' name='title".$i"' value='".$$temp."'></td>\n</tr>\n<tr>\n".
"<td>Font: <select name='font'><option>Times</option><option>Arial</option>".
"<option>Courier</option>\n</select></td>\n<td>Size: ".$fsize."</td>\n".
"<td>Weight: <select name='weight' MULTIPLE><option value=''>Normal</option><option value='B'>Bold</option>".
"<option value='I'>Italic</option><option value='U'>Underlined</option></td>\n".
"<td>Alignment: <select name='align'><option value='C'>Center</option><option value='L'>Left</option>".
"<option value='R'>Right</option>\n</select>";
}
$body .="</tr>";