I have seen on different sites where they have their form set up in steps.

Basically what I would like to do would have the first step of the form where the user has to select an item to purchase. Once they hit the submit button(next button or whatever) it will check for errors of required fields and if everything is okay it will redirect them to step 2. Otherwise it will spit out the error on the same page.

I will have about 4-5 steps before sending them to the secure site to get their credit card information.

How can I do this?

thanks

    Thanks elToro. That helps me, however it doesn't say how to perform error checking to make sure all fields are filled in before sending you to the next step. This is my biggest problem.

    I have the form action set as this;
    <form method="post" action="order.php" (this calls itself to perform error checking)

    What I need is an if else statement to do something like this;

    if(everythingIsCorrect){
    go to step 2 or action="order_step2.php"
    }else{
    display error message
    }

    Can you help?

    Thanks.

      By the way, I know how to perform the error checking. I have that part working, I just don't know how to call a different page once the error checking is complete without errors.

      Can anybody help me.................... please?

        Write a Reply...