RE: Validation and session variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Okay, I altered the code.  Same thing, session
variables gone.
I then deleted the "session only" cookie. Also took
the rule out in the browser , so browser is accepting
all cookies from site.
Still no change.

Not to be redundant but here is the code again:(I
xxx'ed out some fields in the restrict access line so
they are not public)

<?php
//Connection statement
require_once('Connections/MYSQLWH.php');

//Aditional Functions
require_once('includes/functions.inc.php');

//load the tNG classes
require_once('tNG/KT_tNG.inc.php');

//Start the Session - begin Block
@session_start();


restrictAccessToPage($MYSQLWH,'xxxxx','AccessDenied.php','xxxxx','SignUpID','Username','password','level',false,array("xxxxx"));
?>
<?php
require_once("WA_ValidationToolkit/WAVT_Scripts_PHP.php");
?>
<?php
require_once("WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php");
?>
<?php 
if ($_SERVER["REQUEST_METHOD"] == "POST")  {
  $WAFV_Redirect = "";
  $_SESSION['WAVT_TestMulti2'] = "";
  if ($WAFV_Redirect == "")  {
    $WAFV_Redirect = $_SERVER["SCRIPT_NAME"];
  }
  $WAFV_Errors = "";
  $WAFV_Errors .=
WAValidateRQ(((isset($_POST["LurkerEdu"]))?$_POST["LurkerEdu"]:"")
. "",false,1);
  $WAFV_Errors .=
WAValidateRQ(((isset($_POST["LurkerAuth"]))?$_POST["LurkerAuth"]:"")
. "",false,2);
  $WAFV_Errors .=
WAValidateRQ(((isset($_POST["LurkerExperience"]))?$_POST["LurkerExperience"]:"")
. "",false,3);
  $WAFV_Errors .=
WAValidateRQ(((isset($_POST["LurkerLevel"]))?$_POST["LurkerLevel"]:"")
. "",false,4);

  if ($WAFV_Errors != "")  {
   
PostResult($WAFV_Redirect,$WAFV_Errors,"TestMulti2");
  }
}
?>
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
 $url = "TestMulti3.php";
 Header("Location: $url?".SID);
}
?>


Stuart

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux