如何在不打开表单的情况下将条形码读取器发送的值输入到表单的文本字段?
我使用条形码阅读器和 PHP-MySQL 开发了一个非常基本的考勤系统。我有一个表单,那里只有一个文本输入来接收来自条形码的值。提交表单后(我的条形码阅读器自动触发提交),我的脚本会进行一些处理,然后将值插入到我的 mysql 数据库中。这工作正常,但问题是每次有人考勤时,操作员都需要停止其他工作并打开表格并保持这种状态,直到考勤结束。
现在,有什么方法可以让我创建系统,就像操作员不必在每次有人出席时打开表格或关注它一样?供您参考,我正在本地主机上运行该应用程序。
提前致谢 :)
I have developed a very basic attendance taking system using barcode reader with PHP-MySQL. I have a form and there I have only one text input to receive value from barcode. After the form is submitted (my barcode reader automatically triggers submit) my script does some processing and then inserts values into my mysql database. This is working fine, but the problem is every time when someone gives attendance the operator needs to stop other works and open the form and keep it that way until the attendance giving is finished.
Now, is there any way by which I can create the the system like the operator doesn't have to open the form or pay any attention to it every time someone gives attendance? For your information I am running the application on local host.
Thanks in Advance :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
希望我正确理解了你。如果没有请纠正我。
当您的条形码阅读器软件能够执行此操作时,或者您可以为该任务创建一个小程序时:
条形码阅读器软件可以使用表单 url 运行默认的网络浏览器。让表单 URL 为
http://localhost/form.php
并使用 GET 方法。因此,您的软件可以通过查询http://localhost/form.php?data=12345
将数据发送到 php 脚本。Hope that I understood you right. Correct me if not.
When your barcode reader-software is able to do so, or if you can create a small program for the task:
The barcode reader software could run the default webbrowser with the forms url. Let the form url be
http://localhost/form.php
and use the GET method. So your software could send the data to the php script by queryinghttp://localhost/form.php?data=12345
.