[pmwiki-users] PHP help with the " if " control statement

H. Fox haganfox at users.sourceforge.net
Thu Mar 23 10:23:57 CST 2006


Try putting it in a variable.

if(!empty($_GET["link"])) {
$link = "  [["
    .($_GET["link"])
    ."| »Click here for more]]"
    ."\n"
}

>         $rcpage['text'] = $before.
>            /*   "\n$$$$\$default".  pog? */
>                 "\n"
>                 ."(:if date "
>                 .StripCSlashes($_GET["srtdate"])
>                 .".."
>                 .StripCSlashes($_GET["enddate"])
>                 .":)"
>                 ."\n!"
>                 .StripCSlashes($_GET["header"])
>                 ."\n"
>                 .StripCSlashes($_GET['desc'])
>                 ."\\\\"
                  .@$link
>                 ."(:ifend:)"
>                 .$after;
>         WritePage($pagename,$rcpage);

Hagan




More information about the pmwiki-users mailing list