<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Urlencode issues with ambersand]]></title><description><![CDATA[<p dir="auto">I cannot get ambersand to get escaped with urlencode<br />
I have the callerid superfecta running.<br />
Customer name has '&amp;' in it.  "E&amp;E Engine Machine"  by the time the url only the 'E' before the '&amp;' survives as the customer's name.<br />
Here is my popup link declaration.<br />
<a href="http://192.168.1.200/callerid/selacct5.php?phone=#%7BCLIDNUM%7D&amp;cname=#%7BCLIDNAME%7D&amp;exten=AUTO" rel="nofollow ugc">http://192.168.1.200/callerid/selacct5.php?phone=#{CLIDNUM}&amp;cname=#{CLIDNAME}&amp;exten=AUTO</a></p>
<p dir="auto">and the PHP@ that url<br />
&lt;html&gt;<br />
&lt;body&gt;<br />
&lt;?php<br />
/***************************************************************************<br />
**  Php code to insert mysql popup data for  gambas to continue<br />
**  with building the bridge from freepbx/Fop2 to ASSET SCULPTOR applications<br />
**  mainly launching and creating order entry transactions.</p>
<p dir="auto">**  JRM, Halloween 2021<br />
****************************************************************************/</p>
<p dir="auto">$phone= substr($_GET['phone'],-10);<br />
$cname=urldecode($_GET['cname']);</p>
<p dir="auto">echo $cname;<br />
echo "&lt;BR&gt;";<br />
$exten=$_GET['exten'];<br />
$cusname="CallerID is ".$phone." ".$cname;</p>
<p dir="auto">echo "&lt;title&gt;";<br />
echo $cusname;<br />
echo "&lt;/title&gt;";<br />
$_cname = str_replace(',', ' ', $cname);<br />
$username = "?????";<br />
$password = "???????";<br />
$database = "?????";<br />
$mysqli = new mysqli("localhost", $username, $password, $database);<br />
/*******************************************************************<br />
**  first lets see how many accts tied to the phone number<br />
**  query customer to get the acct# where the phone number is<br />
**  in the main record cus_acct, then select distinct cus_acct from<br />
**  customer where cus_commID=cus_acct<br />
********************************************************************/<br />
$num_accts='0';<br />
$cus_acct='None';<br />
$cus_commID='None';</p>
<p dir="auto">$query = "select cus_acct from customer where cus_phone='".$phone."'";<br />
echo "$query";</p>
<pre><code>            if ($result = $mysqli-&gt;query($query)){
            $num_accts  = mysqli_num_rows($result);
            }
</code></pre>
<p dir="auto">echo $num_accts;<br />
while ($row = $result-&gt;fetch_assoc()) {<br />
$cus_acct = $row["cus_acct"];<br />
$cus_commID= $row["cus_commID"];</p>
<pre><code>            }
</code></pre>
<p dir="auto">echo "deebugcommID=".$cus_commID;<br />
// Now how many Accounts<br />
echo $num_accts;</p>
<p dir="auto">$query = "insert into cidDelivery (acct,accts,exten,phone_num,cname) values ('".$cus_acct."','".$num_accts."','".$exten."','".$phone."','".$_cname."')";</p>
<p dir="auto">echo $query;<br />
$result=$mysqli-&gt;query($query);<br />
echo "DONE";<br />
?&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
&lt;body&gt;<br />
&lt;!--<br />
&lt;script&gt;<br />
setTimeout(function() {<br />
window.close()<br />
},20000 );<br />
&lt;/script&gt;<br />
--&gt;<br />
&lt;/body&gt;</p>
]]></description><link>http://localhost:4567/topic/3037/urlencode-issues-with-ambersand</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 11:21:49 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/3037.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 22 Dec 2021 18:27:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Urlencode issues with ambersand on Thu, 06 Jan 2022 14:33:20 GMT]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I am about to release version 2.31.31 with a fix for that bug. Check the donwload page in the following hours, the command to upgrade your FOP2 installation is:</p>
<p dir="auto"><code>wget -O - http://download.fop2.com/upgrade_fop2.sh | bash</code></p>
]]></description><link>http://localhost:4567/post/12379</link><guid isPermaLink="true">http://localhost:4567/post/12379</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Thu, 06 Jan 2022 14:33:20 GMT</pubDate></item></channel></rss>