Hi Peter, > <div style='text-align: center;'> > <button name='left' id='left' value='left'>Left</button> > <button name='right' id='right' value='right'>Right</button> ... > movement = request.form['movement'] > print "post request received with movement: ", movement ... > The question is, in the HTML which 'left' do I change to 'turn'? the > first,second, third or fourth?
Ideally, we'd see the whole <form> in the HTML, and know what `request' is in the Python so documentation for `request.form' can be read, but I'd have thought the answer is `all of them' since <button name='left' id='left' value='turn'>Left</button> would seem inconsistent even if the <button>'s `value' ends up in `movement'. You could also just change the HTML to <button name='alpha' id='bravo' value='charlie'>Delta</button> and see what the `print' displays. Cheers, Ralph. -- Next meeting: Bournemouth, Tuesday, 2018-05-01 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR