Re: Problem parsing xml link with _GET parameters.

From: Date: Thu, 12 Jan 2006 18:00:43 +0000
Subject: Re: Problem parsing xml link with _GET parameters.
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13227@lists.php.net to get a copy of this message
Thanks! That fixed the problem. On 1/12/06, Alexander Valyalkin <valyala@gmail.com> 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; > } >

« previous php.smarty.general (#13227) next »