Jump to content

session variables


NickG21

Recommended Posts

hey everyone, i have a page that i am using as a type of template and in the body i do
[code]<?php
        IF (!isset($_POST['step'])) {
  include "ListInfo.php";}

ELSEIF ($_POST['step'] == 2){
  include "OptServices.php";}

ELSEIF ($_POST['step'] == 3){
include "ContInfo.php";}

ELSEIF ($_POST['step'] == 4){
include "BillInfo.php";}

ELSEIF ($_POST['step'] == 5){
include "Survey.php";}

ELSEIF ($_POST['step'] == 6){
include "Terms.php";}
?>[/code] to see which form should be loaded at that time.  the problem i am having is submitting the data from each form to validation.php one at a time.

I want to send the data, see if it validates properly, if not, redisplay the page with the appropriate data still in tact (which is starting to work well) and if it is correct, move to the next page, where more fields will be filled in and submitted from a button with a different name.  However, i am unable to validate information after the first page, even though i am sure the information is being stored in the session variables.

can anyone help me out a bit?
Also, i was wondering if checking to see if
[code]if(isset($_POST['ButtonName']))
{[/code]would be a significant way to see which form was being used?  it doesn't work in my context but i was wondering if someone knew when it did
Link to comment
https://forums.phpfreaks.com/topic/33629-session-variables/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.