I am selecting data from a MySql database and doing the following
echo "<input type=\"text\" name=\"distadd1\" id=\"distadd1\" class=\"textbox\" value=". urlencode($row['ADD1']). " >";
however the value is being displayed as follows Department+of+Planning+%26+Development.
how do i remove the + and %26
URL encoding is different than what you want to do it sounds like. Try changing URL encode to htmlentities, which will get rid of the ‘+’ and the &26; but will still protect you from XSS / script injection into your webpages.
From the PHP Manual