Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7931695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:47:54+00:00 2026-06-03T20:47:54+00:00

Here is my issue… See my details below: mysamplesite.com has a form on it

  • 0

Here is my issue… See my details below:

mysamplesite.com has a form on it that requires a drop-down selection of a product, there are 4 products.

Once a product is selected and the form is submitted it passes that product form value to the next page.
On that next page I need to know the “if statement” that would display the product selected from the previous page because tehre are 4 products.

This is what is used to capture the value:

<?php $id = $_GET['product1']; echo $id;?>

I just need to know the “if statement” to use so I can display the different products on the next page. A product would be displayed depending upon which product was selected. So “if it’s this then display this”…

I’ve searched stackoverflow have haven’t really found an example of what i’m looking for. Maybe I’m searching for the wrong thing.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T20:47:55+00:00Added an answer on June 3, 2026 at 8:47 pm

    I think this will help you.

    if($id == "option1") {
        // do this
    }
    else if($id == "option2") {
        // do this
    }
    else if($id == "option3") {
        // do this
    }
    else{
        // do this
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The issue here is I can see that the data is being written out
Having an issue here that I have tried everything I can think of but
I'm running a weird issue here. I have code that makes jquery ajax calls
I got a small issue here. I have a button in a form (this
I am having some weird issue here. I have a database table which has
I recreated my issue here . The problem is that the 'left' div should
My issue here is that i want to populate all the records except latest
I have an odd issue here :http://alarmefast.com/securitasdirect2011/index.php On the top left corner, I have
Okay so here my issue, I have a list of items that when a
I'm having an issue here that is blowing my mind. It's a very simple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.