<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV>Hello,</DIV>
<DIV> </DIV>
<DIV>I'm using the GuestBook recipe, modified with some of my own changes as
shown below. The code below does not work because of the passages in
red. I'm fairly new to PHP and can't see the problem in this code.
My purpose here is that sometimes the link field will be left blank so I don't
want to display the text in blue if the link field is blank.
Can anyone point out what is wrong or give me some help with what I am trying to
do?</DIV>
<DIV><BR></DIV>
<P><FONT size=2><FONT
face="Courier New"> $rcpage['text'] =
$before.<BR>
/* "\n$$$$\$default". pog?
*/<BR>
"\n"<BR>
."(:if date
"<BR>
.StripCSlashes($_GET["srtdate"])<BR>
.".."<BR>
.StripCSlashes($_GET["enddate"])<BR>
.":)"<BR>
."\n!"<BR>
.StripCSlashes($_GET["header"])<BR>
."\n"<BR>
.StripCSlashes($_GET['desc'])<BR>
."\\\\"<BR>
."\n"<BR><FONT
color=#ff0000> if($_GET["link"]!=""){<BR></FONT></FONT></FONT><FONT
size=2><FONT face="Courier New"><FONT color=#008000> </FONT><FONT
color=#000080>
."&nbsp;&nbsp;[["<BR>
.($_GET["link"])<BR>
."| &raquo;Click here for more]]"</FONT><BR><FONT
color=#ff0000>
}</FONT><BR></FONT></FONT><FONT size=2><FONT
face="Courier New">
."\n"<BR>
."(:ifend:)"<BR>
.$after;<BR>
WritePage($pagename,$rcpage);<BR></FONT></FONT><FONT size=2><FONT
face="Courier New"><FONT face="Times New Roman"
size=3><BR>Thanks!</FONT></FONT></FONT></P>
<P><FONT size=2><FONT face="Courier New"><FONT face="Times New Roman"
size=3>-Josh</FONT><BR></P></FONT><FONT
face="Courier New"></FONT></FONT></BODY></HTML>