Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

HTML Email Address Verification with Two Step Form

Jean

Coder
Hi!

Biggest Problem in Forms are invalid email addresses.

Would it be possible to create a simple two step html verification like:

First Form:

Only Email Address and Submit including hidden Autoresponder Email and ThankYou Page

[CODE title="First Form"]<form action="https://formsubmit.co/[email protected]" method="POST">
<input type="email" name="email" required>
<input type="hidden" name="_autoresponse" value="Your Verification Code is "simong1993"">
<input type="hidden" name="_next" value="https://yourdomain.co/thankyoupageform">
<button type="submit">Send me Verification Code</button>
</form>[/CODE]

So far, so good.

User is filling email [email protected] and press SUBMIT and get "https://yourdomain.co/thankyoupageform" = "We have send an Email to [email protected] please put in your verifikation code WITH Name and CV UPLOAD AND hidden field [email protected] AND VERIFICATION CODE FIELD AND autoresponder email from [email protected] with verification code.

To make it easy verification is always the same = simong1993 or if anybody has a "better" idea?

So user get email verifikation code via autoresponder email.

ThankYou Page:

Question One:


How to put Email Address [email protected] to Thank you Page?

Question Two:

How to submit ThankYou Page Form ONLY if Verfication Code is right?

[CODE title="Second Form"]<form action="https://formsubmit.co/[email protected]" method="POST" enctype="multipart/form-data">
<input type="text" name="name" required>
<input type="file" name="attachment" required>
<input type="hidden" name="Email" value="[email protected]"> ... from thankyoupageform
<input type="hidden" name="_next" value="https://yourdomain.co/thankyoupageverified">
<button type="submit">Send me Verification Code</button>
</form>[/CODE]

Last but not least after successful submitting verification code user is forwarded to thankyoupageverified
 
I cant keep up with where i am helping you at the moment :D Sorry if ive missed any :)

So this one its quite easy,

first with the url you send them to check you need to make sure its URL?check=simong1993, add this to the email.

Now when they click the email, on the verification page do $_GET["check"], this will pull simong1993 from the URL, Then you just need to do a php check to make sure its there and carry on. You will need to look into sanitising the data as wekk
 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom