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 8525565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:01:04+00:00 2026-06-11T08:01:04+00:00

I want to have a multi-step form with HTML and PHP. The first step

  • 0

I want to have a multi-step form with HTML and PHP.
The first step of my form is an option like:

<input type="radio" name="service_type" value="plan1"> Plan 1<br />
<input type="radio" name="service_type" value="plan2"> Plan 2

Now, my question is: how can I know which option is selected so that I arrange the next step options for the user?

For example: If the user chooses option 1, next step would be: “You have chosen option 1, tell me who’s your daddy”. And if the user chooses option 2, next step says: “Welcome to option 2, tell me what you like”, etc.

Now, I’m a totally beginner in PHP/HTML and know nothing about javascript. If you’re answering this, I’d be so thankful, but please do it in an easy-to-understand sort of way.

I have already found this related to my case, but it is very hard to customize, and the validation process is of before CSS3.

[edit:]

Now I want to add a text-type input like this:

<input type="text" name="fname" value="firstname">

The guys told me to use $_POST['fname'] but for input texts, the ‘value’ property will show up inside the textbox like a default caption. I don’t want this.

Now what do you suggest?

  • 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-11T08:01:06+00:00Added an answer on June 11, 2026 at 8:01 am

    the the value from $_REQUEST:

    $step = $_REQUEST['service_type']; // plan1 or plan2
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a multi-step file import process. I have a hidden form input in
I have an multi-dimensional array that I want to send to a PHP script
I have a multi-lingual page where I want to display form validation error in
I have a custom attribute which is multi select type and I want to
I have a multi-step data entry form in my ASP.NET MVC application. When the
How would one go about having a multi step type form with zend. This
I have a php form and I want to display or hide certain fields
I have a multi-step form that I set up in rails 3 using this
I have a multi-step Rails 3 form that I set up using this railscast:
Can you store an image in a PHP SESSION ? I have a multi-step

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.