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

Miller, Joshua web at cityofelmira.net
Thu Mar 23 12:37:45 CST 2006


 
I got it working now... As a JavaScript veteran, I forget that variables
begin with ? in PHP.  That was one of the mistakes I made...the rest
were fixed with all of your suggestions, which I thank you very much
for.

-Josh


-----Original Message-----
From: haganfox at gmail.com [mailto:haganfox at gmail.com] On Behalf Of H. Fox
Sent: Thursday, March 23, 2006 11:24 AM
To: Miller, Joshua
Cc: Neil Herber; pmwiki-users at pmichaud.com
Subject: Re: [pmwiki-users] PHP help with the " if " control statement

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