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

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -