Avatar of spirofantasio
spirofantasio asked on

box requires text; two boxes must contain identical text

I am making a form with PHP in which a web site visitor puts in various details.

I'm stuck on three things:

1. The Contact Name input box must contain text
2. The Email address box must also contain text
3. There is a second box in which the user must repeat his email address.

An error message should appear if any three of these boxes are not filled or if the second and third boxes do not contain matching text.

Is there any way of doin this in PHP? I would rather avoid Javascript, but will consider it if there is no other option.

Avatar of undefined
Last Comment

8/22/2022 - Mon

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

Thanks for the helping hand. I'm finally getting somewhere.
Your help has saved me hundreds of hours of internet surfing.