javascript - API search help JSON/PHP -


first i'm new json , php. i'm sorry if question simple.

alright, using movies json api , except 1 thing,

the url request search query : /api/movies.json?search='then search here' did in file_get_content('/api/movies.json?search='.$search_movie);

i'm trying add search input , button once pressed change search_movie variable whats inside input , refresh page.

how can or there better way ?

i recommend using guzzle this. extremely easy use , if ever want more advanced functionality available you.

here nice article describing step step how started: http://www.sitepoint.com/guzzle-php-http-client/.


Comments

Popular posts from this blog

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -