Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
urlencode() and urldecode() Functions?
What are urlencode() and urldecode() functions in PHP?
✍: FYIcenter
string urlencode(str) - Returns the URL encoded version of the input string. String values to be used in URL query string need to be URL encoded. In the URL encoded version:
For example, you will get "http://fyicenter.com/rate.php?r=100%25%2B" from this sample code:
<?php $r ="100%+"; $url = "http://fyicenter.com/rate.php?r=".urlencode($r); echo $url; ?>
urldecode() returns the URL decoded version of the given string.
2007-02-27, 7204👍, 0💬
Popular Posts:
What Is a CAPTION Tag/Element? - XHTML 1.0 Tutorials - Understanding Tables and Table Cells A "capti...
How do I force the Dispose method to be called automatically, as clients can forget to call Dispose ...
Rachel opened her math book and found that the sum of the facing pages was 245. What pages did she o...
When should the method invokeLater() be used? This method is used to ensure that Swing components ar...
How Many Tags Are Defined in HTML 4.01? There are 77 tags defined in HTML 4.01: a abbr acronym addre...