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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:15:15+00:00 2026-06-02T20:15:15+00:00

I am fairly new to web design and need some help coding a form.

  • 0

I am fairly new to web design and need some help coding a form. What I am looking to do is take an HTML form that contains a birthday drop down section (mm/dd/yyyy – So 3 different select tabs) and redirect a user based on their age.

If the user is under 30 send them to a new page that says we can’t help them. If the user is 30 or over, send them to a second form where they will be able to answer follow up questions… so another form. When processed, I would need to display all the data the user has entered from the beginning of the process.

It’s basically 2 form pages, and the 2nd only appears if the user is 30 or over. I am trying to code this using PHP and can’t seem to get started. Any help would be appreciated.

Thanks!!

  • 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-02T20:15:17+00:00Added an answer on June 2, 2026 at 8:15 pm
    $interval = date_diff(new DateTime(), new DateTime($_POST['year'] .'-'. $_POST['month'] .'-'. $_POST['day']));
    
    if ($interval->y >= 30)
    {
        session_start();
        $_SESSION = $_POST;
        header('Location: over30.php');
    }
    else
    {
        header('Location: under30.php');
    }
    

    in the next form…

    <?php session_start(); ?>
    
    <html>
        <head><head>
        <body>
            <form method="post" action="xxx.php">
                <input type="text" value="<?=$_SESSION['name'];?>" />
            </form>
        </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm fairly new to web-centric design and programming. I've got a HTML + CSS
I just need some guidance. I'm fairly new to MVC3 and to web development
I'm fairly new to web design, I've just created following website http://www.janewaltonwatercolours.co.uk , and
I'm a fairly new programmer and very new to web programming and I need
I am fairly new to html/css and need to create something like the following:
I'm fairly new with creating a web application and would like to seek help
I'm working on a Java EE (which I'm fairly new to) web application (JSF,
I downloaded the fairly new Ninject 2.0 and Ninject.Web.Mvc (targeting mvc2) sources today, and
I am fairly new to c# and am trying to write a n-tiered web
I fairly new to JQuery and perhaps trying to achieve something that might be

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.