FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » to fill a select with json javascript from arrays
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: to fill a select with json javascript from arrays [message #175086 is a reply to message #175075] Thu, 11 August 2011 20:50 Go to previous messageGo to previous message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma:
Senior Member
nawfer wrote:

>> This is actually a JavaScript/JSON question.
>
> but in the first step how can take the array php and have array js?
> I read json is solution but which is the correct code that can to work
> with my type of php array?

RTFM: <http://php.net/json_encode> (there are examples there, too!)

You would be well-advised to ignore Jerry Stuckle. The record shows that he
seldom knows what he is talking about but unfortunately compensates that
with uncalled-for rudeness.

Please follow the recommendations in
<http://www.netmeister.org/news/learn2quote.html>.


PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f806at$ail$1$8300dec7(at)news(dot)demon(dot)co(dot)uk>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: json_decode
Next Topic: Calling stored procedure on remote SQL Server machine with PDO
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 19:14:25 GMT 2024

Total time taken to generate the page: 0.07956 seconds