Вопрос

preview of form data of an html form at the same time send email and open a new form

control flow is like this

form1.html// included email1.php in action

form2.html// i included in email1.php

email2.php// i included success.html

please help in previewing the form1.html right after sudmiting it and then to form2.

Это было полезно?

Решение

You have to make another php with session or with mysql fetching the result through table. Example of the coding using session:

getresult.php

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

preview.php

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


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

On the email part you should what should right?

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top