如何在用户提交表单后自动生成网页

发布于 2024-11-04 08:20:34 字数 535 浏览 1 评论 0原文

我正在寻找这方面的一些初步方向,因为我似乎找不到我的方法。让我解释一下......

我正在开发一个网站,其中登录的网站成员(Joomla 1.6)可以填写一个简单的表格并附上要在提交时上传的pdf。然后,用户单击提交按钮,页面将刷新到一个新的且唯一的网页。

用户在 http://www.examplesite.com 上提交数据,提交后会生成一个新网页,该网页为名为 http://www.examplesite.com/userSubmitValue

这个新生成的网页将来自一个模板,该模板由管理员指定,最重要的是,它将显示所有用户提交的信息。此外,还会有一个下载他们上传的 pdf 的链接。然后,用户可以通过他们的个人资料查看他们以这种方式创建的所有页面的列表。

我已经看到了这一切,但我不知道如何生成它。非常感谢任何帮助。

I am looking for some initial direction on this one because I cannot seem to find my way with it. Let me explain...

I am developing a website wherein a logged in site member (Joomla 1.6) can fill out a simple form and attach a pdf to be uploaded upon submission. The user then clicks the submit button and the page will refresh to a new and unique web page.

User Submits data on http://www.examplesite.com and then after submission a new web page is generated that is called http://www.examplesite.com/userSubmittedValue

This newly generated web page would come from a template that is specified by the administrator and, most important, it will display all of the information that the user submitted. Also, there would be a link to download the pdf they uploaded. The user could then view a list of all the pages they have created in this manner via their profile.

I have seen this all over, but I am at a loss for how to generate this. Any help is much appreciated.

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

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

发布评论

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

评论(2

银河中√捞星星 2024-11-11 08:20:34

这不是您能够轻松完成或在这里获得详细答案的事情。如果您只想使用显示提交数据的感谢页面来完成提交表单,您可以使用任意数量的表单向导类型扩展 - http://extensions.joomla.org/extensions/contacts-and-feedback/forms

如果您只需要一种让用户上传 PDF 并有权访问它们的方法您可以使用提供前端上传功能的文件管理扩展之一 - http:// /extensions.joomla.org/extensions/directory-a-documentation/downloads

如果提交的附加数据只是与文件相关的数据 - 标题、描述等,那么文件下载组件之一应该可以工作对你来说很好。目前,选择仅限于 1.6,因此您可能必须选择 1.5 才能获得最适合您需求的扩展。

This is not something you will be able to easily do or get a detailed answer for here. If you just wanted to do the submission form with a thank you page that shows the data submitted you could use any number of form wizard type extensions - http://extensions.joomla.org/extensions/contacts-and-feedback/forms

If you just needed a way for users to upload PDfs and have access to them you could use one of the file management extensions that offer front end upload features - http://extensions.joomla.org/extensions/directory-a-documentation/downloads

If the additional data that is being submitted is simply data related to the file - title, description, etc then one of the file download components should work fine for you. The choices are limited in 1.6 at this time though so you might have to go with 1.5 to get the extension that works best for your needs.

梦里南柯 2024-11-11 08:20:34

因此,如果您使用 Joomla,这可能不是最好的方法,但它可能会有所帮助。

我将使用 PHP,并且您的目录中有一个类似“template.html”的文件。然后我将创建一些 php 来处理...的任务...

  1. 打开“template.html”
  2. 查找并替换用户传递给您的值
  3. 将“template.html”保存在新名称下(userSubscribedValue.html)

再次,我从来没有真正使用过 Joomla。如果你想尝试这个,我建议你查看 php 的文件系统函数(http://us2.php.net/manual/en/ref.filesystem.php)。

希望这会有所帮助。

So this probably isn't the best way to do it if your using Joomla but it just might help.

I would use PHP and inside of you're directory have a file like "template.html". Then I would create some php to handle the task of....

  1. Opening "template.html"
  2. Finding and replacing the values that the user passed you
  3. Save the "template.html" under a new name (userSubmittedValue.html)

Again, I never really use Joomla. If you were to try this I'd suggest checking out php's file system functions (http://us2.php.net/manual/en/ref.filesystem.php).

Hope this helps a bit.

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