Page 1 of 1

probably with class

Posted: Thu May 15, 2008 11:00 pm
by icepack
the code involved is:

$other = "in reply to <a href=\"$orig_id.$settings[extension]\">$orig_subject</a> posted by $orig_name on $orig_date";
createNewFile($name,$mail,$subject,$comments,$count,$date,$other,$orig_id);


i am trying to make it:

$other = "in reply to <a class="classid" href=\"$orig_id.$settings[extension]\">$orig_subject</a> posted by $orig_name on $orig_date";
createNewFile($name,$mail,$subject,$comments,$count,$date,$other,$orig_id);

but i get a script error and everything stops working
please help!

Posted: Fri May 16, 2008 5:24 am
by Henrie
You have to escape your double quotes like is done with the href in that line.
The code should look like

Code: Select all

$other = "in reply to <a class=\"classid\" href=\"$orig_id.$settings[extension]\">$orig_subject</a> posted by $orig_name on $orig_date";
createNewFile($name,$mail,$subject,$comments,$count,$date,$other,$orig_id);

Greetings,
Henrie

Posted: Fri May 16, 2008 10:50 am
by icepack
alright, you the man!