Pass an email address from one form to another
-
Hello everyone. I’m looking for help with an issue related to a newsletter subscription form.
In the footer of [ redundant link removed ] there is a form in which the user should enter just his/her email addres.
The code of this form is:
<form action="newsletter" method="post"> <input style="width: 100%; margin-bottom: 5px;" name="email" id="email" type="text" value="" placeholder="il tuo indirizzo email" required /> <input style="width: 50%;" type="submit" value="iscrivimi" /> </form>
When he/she submits the email by clicking on “iscrivimi” the form redirects to another page, called “newsletter” where there is another form with more fields to be filled.
I would like to have the email the user has filled already precompiled.
I’ve tried to achieve this by using:
<input type="text" name="email" id="email" value="<?php echo $_POST['email']; ?>" style="padding: 10px 2%; width: 90%; min-width: auto;">
But what I get is:
What am I missing?
Thank you in advance
The page I need help with: [log in to see the link]
- The topic ‘Pass an email address from one form to another’ is closed to new replies.