Skip to main content
Inspiring
February 19, 2019
Answered

Fillable Form: How to Automatically Fill in Email Address Field on 2nd Form

  • February 19, 2019
  • 2 replies
  • 2362 views

My clients must fill out their email address field in order for a fillable form to be sent to me. After they press Submit they are taken to another fillable form. Can their email address automatically appear in this form?

Here is an example page:

1959 Corvette Options

    This topic has been closed for replies.
    Correct answer BenPleysier

    In the documment where the action for the first form takes place, contact.php, add the following code

    <?php

      session_start();

      $_SESSION["email"] = $_POST["email"];

    ?>

    then in the document where the action for the second form takes place, (not known), insert the following code

    <?php

      session_start();

      $_POST["email"] = $_SESSION["email"];

    ?>

    There is no need to have a form input field for email because it will be automatically added.

    2 replies

    Nancy OShea
    Community Expert
    Community Expert
    February 19, 2019

    Why must your customers complete 2 forms?

    And why are you collecting user data from a non HTTPS  site? 

    Screenshot from Chrome:

     

    Nancy O'Shea— Product User & Community Expert
    Legend
    February 20, 2019

    https://forums.adobe.com/people/Nancy+OShea  wrote

    Why must your customers complete 2 forms?

    I don't know. I'm giving up on this one as it's a flawed workflow - why get an email sent prior to the user actually checking out via a payment gateway - the order that never was..........hummm.

    Inspiring
    February 20, 2019

    OK, I added the missing code and everything works.

    Thanks so much for your help!

    BenPleysier
    Community Expert
    Community Expert
    February 19, 2019

    Yes, there are a number of ways to do this, namely

    • using a URL parameter
    • using a cookie
    • using a session variable

    Personally I would go for the last option. For more see PHP 5 Sessions or Google the subject.

    Also have a look at https://www.webascender.com/blog/do-i-need-an-ssl-certificate-for-my-website/

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    Inspiring
    February 20, 2019

    I checked the link but it offers general info on php pages. I really need a more specific answer to my question.

    Nancy OShea
    Community Expert
    Community Expert
    February 20, 2019

    This is not a Dreamweaver question.  It's a question for your web hosting provider an/or your web developer.

    Server Security begins at the hosting level with qualified technicians who understand server threats and do everything possible to keep your server safe.  Regular software & security upgrades are essential.   If your server isn't using the latest  technology it's probably not as secure as it should be.

    Secure Socket Layer (SSL/TLS Certificates) are obtained from a recognized authority like Comodo CA, DigiCert, or Let's Encrypt and installed on your server.  Site visitors will then see a secure HTTPS protocol in their browser.   Decide beforehand how  much assurance & warranty you need.  And how many domain names to cover.   Additionally, there are 3 types of verification levels to consider.

    • Domain Verified (DV) is the most common and takes as little as 15 minutes with no paperwork to complete.
    • Organization Verified (OV) -- takes 1-3 business days to verify domain name, business ownership records and address.

    • Extended Verified (EV)  - similar to OV above but adds a green organization name to the browser address bar.

    For more on obtaining and installing SSL/TLS Certificates yourself, refer to the knowledgebase at Namecheap.com.

    https://www.namecheap.com/security/ssl-certificates/

    https://www.namecheap.com/support/knowledgebase/category.aspx/14/ssl-certificates

    Nancy O'Shea— Product User & Community Expert