Avatar of MPDenver
MPDenver asked on

HTML/PHP Submit button redirect

I know this may not be the best way to do this however I try ttext boo figure it out.

I have and index.php that has a text box and a submit button.

What I need is advice on the best way to look up a value in the text box an redirect to a website based on the value.  

If the value does not exist then a message displaying the value does not exist.


textbox value  = "google" when submit is clicked look for the value redirect redirect to

google = www.google.com

the text will have letters or numbers.


Avatar of undefined
Last Comment

8/22/2022 - Mon

Do you have any specific set of urls alone to be redirected or any text?

Do you want to redirect having your own baseurl or to common open sites like google?
Julian Hansen

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
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.

Great Work Thanks

MPDenver, this is my first javascript program :). Hope it helps you . Thanks for the points.
Your help has saved me hundreds of hours of internet surfing.