0

这是我的“表格” http://www.confidentialpatient.com/js/index.html

我需要为此添加一些内容:

  • 该人完成添加“项目”后,单击“下一步”
  • 在下一页上,给出了上一页中选择的项目的摘要(以列表格式)。基本上,这是一个确认页面
  • 然后,他们可以单击“提交”,将表单数据通过电子邮件发送给我。

我知道这可能很多,但我非常感谢任何见解!

4

1 回答 1

0

如果没有服务器端脚本语言,您将无法做到这一点。您有几个选择是 PHP、ASP.NET、PERL 或 Python。

供您参考,我提到了一个测试脚本和 PHP 代码,用于提交只有一个字段的表单,然后在下一页接收该信息,然后在 h2 标记中将其显示给用户。

第 1 页的代码:

<form method="post" action="page2.html">
   <h1>This is a test form</h1>
   <label>Enter your full name</label>
   <input type="text" name="fullname" />
   <input type="submit" name="submit" value="Submit Form" />
</form>

第 2 页的代码(接收页面):

<?php
    $name = $_POST['fullname'];
?>
<h2>You submitted name is: <?php echo $name; ?> </h2>
于 2013-01-22T14:33:23.847 回答