October 2017
Intermediate to advanced
370 pages
8h 57m
English
The quickest way to add a form is like this (don't forget to include the amp-form extension script):
<form action="amp-live-list-twitter.php" method="get"> Search twitter for: <input type="text" name="q"> <input type="submit" value="Search"></form>
Then the server just needs to parse the q request parameter, and pass it along to the Twitter API:

And we're done! Or are we? Things can get a little complicated when the page is served from the AMP Cache.
Read now
Unlock full access