keeping single-quotes in http_build_query()?
Posted
by user151841
on Stack Overflow
See other posts from Stack Overflow
or by user151841
Published on 2010-05-25T16:20:41Z
Indexed on
2010/05/25
17:31 UTC
Read the original article
Hit count: 181
php
|http-header-fields
I'm wanting to use http_build_query to change an array to html tag properties. Problem is, it's changing my single-quoted values into %27
. So if I have
http_build_query( array("type"=>"'hidden'", ... ), '', ' ' );
I get
<input type=%27hidden%27 ...>
How can I get around this?
© Stack Overflow or respective owner