点击电子邮件转发预览html表单并打开一个html表单


Preview of html form with on click email fwd and opens a html form

预览html表单的表单数据,同时发送电子邮件并打开新表单

控制流程类似于

form1.html//包含email1.php在行动

form2.html//i包含在email1.php 中

email2.php//i included success.html

请帮助预览form1.html,然后再预览到form2。

您必须使用session或mysql制作另一个php,通过表获取结果。使用会话编码的示例:

getresult.php

    <?php
    session_start();
    $firstname = $_POST['firstname']; // Gets the form's input
    $fname = $_SESSION['fname']; 
    ?>

预览.php

    <?php
    session_start();
    $firstname = $_SESSION['fname']
    ?>

     <form action="" method="post"> <!-- Show the form -->
     <input type="text" name="firstname" value="<?php echo $firstname; ?>">
     </form>

在电子邮件部分,你应该对什么?