<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>URL encoding does not work in this case.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Quote from PHP.net : </DIV><DIV><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;">(urlencode) Returns a string in which all non-alphanumeric characters except </SPAN></FONT><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;"><I>-_.</I></SPAN></FONT><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;"> have been replaced with a percent (</SPAN></FONT><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;"><I>%</I></SPAN></FONT><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;">) sign followed by two hex digits and spaces encoded as plus (</SPAN></FONT><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;"><I>+</I></SPAN></FONT><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;">) signs.</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;">So, if there was a period it'll be left untouched by urlencode. The hash is thus needed to circumvent the problem.</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;"><BR></SPAN></FONT><DIV><DIV>On 31-Aug-2005, at 23:38 , Benoit Grégoire wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">So that means if a node_id (and the issue is only possible for node</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">id since they are user-defined, other id are numeric or hash-based),</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">an ID containing whitespaces, periods or underscores might confuse</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">PHP... How should we treat this. Since this naming scheme is only</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">used for making sure var names are unique... we could simply MD5 the</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">node_id before concatenating it into the http var name ... since it's</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">only used as a reference between getAdminUI and processAdminUI</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">methods...</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Benoit, what do you think of this solution ?</DIV> <BR></BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I prefer the urlencode solution (it keeps the node_id somewhat readable, and<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">it's not longer to code), but I don't feel strongly either way.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">--<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Benoit Grégoire, <A href="http://benoitg.coeus.ca">http://benoitg.coeus.ca</A>/</DIV> <BR class="Apple-interchange-newline"></BLOCKQUOTE></DIV><BR></BODY></HTML>