如何使用PHP自动提交

发布于 2024-09-27 00:13:18 字数 146 浏览 0 评论 0原文

我有基于 oscommerce 的网站。产品的属性是从文本文件中读取的。我想要的只是通过 AJAX 或其他方式自动按下“插入产品”按钮。这样我就可以每天自动添加 100 个产品,而不是使用文本文件手动上传它们并按“插入产品”按钮 100 次。

请告诉我该怎么做?

I have oscommerce based website. The product's attributes are read from text file. All i want is to press the "insert product" button automatically either through AJAX or anything else. So that i can add 100 product daily in automatic way instead of manually uploading them using text file and press "insert product" button 100 times.

Please tell me how can i do that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

何以畏孤独 2024-10-04 00:13:18

您可以使用其中之一

formObject.submit()

buttonObject.click()

如何访问这两个对象,如果没有看到标记,我无法告诉您。

you can use either

formObject.submit()

or

buttonObject.click()

how to access the both objects I cant tell you without seeing the markup.

流年已逝 2024-10-04 00:13:18

产品不同于产品属性。您只需使用脚本即可上传产品。您可以在上传之前使用 ftp 上传图像,以确保产品图像在产品显示屏中良好显示。

湿婆神

Products are different from product attributes. You can simply use a script to upload the products. You can upload the images using an ftp before upload just to make sure the product images are shown up well in the product display.

Shiva

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文