简体   繁体   中英

Raspberry Pi - HTML forms not submitting

I have a Raspberry Pi that is effectively being used as a kiosk display. It auto starts Chromium and goes to a webpage which displays some data. There is a form on this page and a barcode reader attached to the Pi which, when a barcode is scanned dumps the contents of the barcode into the textbox and simulates a carriage return (enter).

This works in console on the Pi and on other machines which have no problem with the webpage however, on the Pi it will generally dump the contents of the barcode and won't submit the form - if you attach the keyboard and hit enter nothing happens; change the focus onto the button and hit enter - nothing happens!

Pi上的表格

My HTML code for the form:

 <table class="footer"> <tr class='grey'> <td> <?php echo date( "d/m/Y - H:i:s", time()); ?> </td> <td> <form action='board_update.php' id="id" method='post'><input type='text' name='id' autofocus='autofocus'/><input type="submit " value="Submit " /></form></td> </tr> </table> 

The page has a meta tag which causes it to refresh at 5 minute intervals (which it does).

I'm wondering what the problem is? The form or the Pi?

It appears that after much troubleshooting and replicating the setup on another Pi, that it is indeed the Raspberry Pi at fault. Something is either wrong with the OS or hardware but I've replaced the entire set up and so far, so good.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM