Using HTML GET (Arduino is the AP...)

tgr8db:
Set up a sketch which completely hosts the webpage (acts as the server) and receives x from the client and stores it in a local variable (OR displays it in the serial monitor).

If I'm not mistaken, this site is called "Arduino Forum", and not "Arduino Free Code Distribution Service" :wink:

Show us what you've tried already, so we can work on that.
Did you download the WebSocket library I suggested?
Take a look at the examples, there is one that controls the brightness of 3 LEDs from a webpage.
Doesn't that sound exactly like what you are trying to do? (If you use motors instead of LEDs, of course.)

Check out the example, try to understand how it works, look it up on Google if there's something you don't understand. If that's not enough, you can ask it in this thread, and we can take a look at it together.

If you look at the example, try to find out how they start the connection (also, what libraries are they using?), what happens if data is received (what function handles the receiving of messages, how are the messages converted to the right type), next, find out how the webpage sends data to the ESP (the HTML and JavaScript for the webpage are on line 103, as one long string, not very handy to find out what's going on, so save it as a separate .html file and open it in Chrome. Now you can press CTRL+U to view the source of the page.)
Finally, try to figure out how the ESP8266 can send data back to the browser, and how the webpage receives it.

If you have a general idea of how it works, you can try to upload it to the ESP, and open the real webpage in the browser.

The last step is to use the information you got to write your own sketch, or adapt the example in such a way that you can use it for your project.

Good luck!
Pieter