Re: Problem parsing xml link with _GET parameters.

[email protected] (Tony)
Newsgroups php.smarty.general
Message-ID <[email protected]>
Thanks!  That fixed the problem.

On 1/12/06, Alexander Valyalkin <[email protected]> wrote:
> It seems business logic of your script is broken. Try this:
>
> function startContact($parser, $name, $attribs){
>  global $currentTag, $currentAttribs, $contact, $page;
>  $currentTag = $name;
>  $currentAttribs = $attribs;
>    switch ($name) {
>      case "link";
>      $contact = "<a href=\"http://";
>      break;
>    }
>  return $contact;
> }
>
> function endContact($parser, $name){
>  global $currentTag, $contact, $page;
>    switch ($name) {
>      case "link";
>      $contact .= "\">LINK</a>";
>      break;
>    }
>  $currentTag = "";
>  $currentAttribs = "";
>  return $contact;
> }
>
> function dataContact($parser, $data){
>  global $currentTag, $contact, $page;
>   switch ($currentTag) {
>     case "link";
>     $contact .= htmlspecialchars($data);
>     break;
>   }
>   return $contact;
> }
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.