使用 PHP 从同一页面自动填充表单中的字段
我只是想知道这是否可以用 PHP 来完成。我有一个目录 MySQL 数据库,使用 joomla,当客户进入一个项目时,有一个零件号、描述等......并且底部有一个表格,以便客户可以提交他们的询价。我想知道零件号字段是否可以自动填充,以便客户只需输入他们的姓名和电话号码,而不必担心零件号。请告诉我是否可以做到这一点,任何帮助将不胜感激!
请看一下这个,看看我的意思。
http://www.shoxwebdesign .com/edc2/aircraft-parts/catalog-2/details/2/91/catalog-2-edc001
I am just wondering if this could be done with PHP. I have a catalog MySQL database, using joomla, when a customer goes inside an item, there is a Part Number, Description, etc.... and on the bottom there is a form so customers can submit their RFQ's. I was wondering if the part number field, could be auto populated so customer can just put in their name and phone number and dont have to worry about the part number. Please let me know if this can be done, any help would be really appreciated!
please take a look at this to see what I mean.
http://www.shoxwebdesign.com/edc2/aircraft-parts/catalog-2/details/2/91/catalog-2-edc001
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您所要做的就是更改表单输入字段以包含一个值;
例如
或者您可以将此数据放入隐藏字段中,
All you have to do is to change your form input field to include a value;
to
or you can put this data in a hidden field like
当然...在您制作表单的地方,将 value 属性添加到文本字段,无论您想要什么值...
definitely...where you're making the form, add the value attribute to the text fields, with whatever value you want...