title; $intro=$obj_sname->intro; if(isset($_POST['Next'])) { $firstname = $_REQUEST['firstname']; $lastname = $_REQUEST['lastname']; $temp = $_REQUEST['temp']; $surveyid = $_REQUEST['surveyid']; $uid = $_REQUEST['uid']; $uid1 = $_REQUEST['uid1']; $db_name = $_REQUEST['db_name']; $email = $_REQUEST['email']; $organization = $_REQUEST['organization']; $age = $_REQUEST['age']; if(isset($uid)) {$registered='Y';} else{$registered='N';} $user_table = Database :: get_main_table(TABLE_MAIN_USER); $survey_user_info_table = Database :: get_main_table(TABLE_MAIN_SURVEY_USER); if($uid1!=""){ header("location:surveytemp_white.php?temp=$temp&surveyid=$surveyid&uid1=$uid1&db_name=$db_name&mail=$mail&lang=$lang"); exit; }else{ header("location:surveytemp_white.php?temp=$temp&surveyid=$surveyid&uid1=$uid1&db_name=$db_name&mail=$mail&lang=$lang"); exit; } } if($uid1){ $survey_user_info_table = Database :: get_main_table(TABLE_MAIN_SURVEY_USER); $sql_u="Select * from $survey_user_info_table where id='$uid1'"; } else{ $sql_u="Select * from $user_table where user_id='$uid'"; } $res = api_sql_query($sql_u,__FILE__,__LINE__); $obj=@mysql_fetch_object($res); $email=$obj->email; $rs=mysql_query("select * from $db_name.questions"); $row=mysql_num_rows($rs); $page=ceil($row/4); if(isset($_GET[num])){ $num=$_GET[num]; if($num>$page){ header("Location:test.php"); exit; } }else{ $num = 1; } $lower = $num*4-4; Display::display_header($tool_name); ?>
|
||