Welcome Guest, Not a member yet? Register   Sign In
Need help on query string
#8

[eluser]nandish[/eluser]
function updateUsdata(){
if(!$this->sehelper->checkSession()) return; //updating user information
error_reporting(0);
if(isset($_REQUEST['uName'])){
$Name = $_REQUEST['uName']; // fullname of user ex; firstname+lastname
$spName = explode(" ",$Name); // spliting
$firstName = $spName[0]; // assiginig value for firstName and lastName
if($spName[1] == ""){ // if the user enter only first like Kumar,Instead of Kumar Bhograju.
$lastName = $spName[0];
}else{
$lastName = $spName[1];
}
}
if(isset($_REQUEST['ustate'])){
$state = $_REQUEST['ustate']; //Note: we are using two forms submit
} // 1)reloading view page
else{ // 2)updating data
$state = $this->uri->segment(3); //getting state value(submit form value) with the help of javascript -
} //when we submit update form
if(isset($_REQUEST['uRole'])){
$Role = $_REQUEST['uRole'];
}
if(isset($_REQUEST['uPlan'])){
$Plan = $_REQUEST['uPlan'];
}
if(isset($_REQUEST['lyear'])){
$year = $_REQUEST['lyear'];
}else {
$year = $this->uri->segment(5); //getting year value (submit form value) with the help of javascript -
} //when we submit update form
if(isset($_REQUEST['lschl'])){
$schName = $_REQUEST['lschl'];
}else{
$schName = $this->uri->segment(4); //getting year value (submit form value) with the help of javascript -
} //when we submit update form
if(isset($_REQUEST['uId'])){
$userId = $_REQUEST['uId']; //Accroding the userID,Updating userInformation in //tbl_user_subscriptions and
//tbl_users.
}
$this->Msubscript->updateUserInfo($Plan,$Role,$firstName,$lastName,$userId); //updating
if($schName == 'ALL'){
$schName = '%';
}
$this->showData($state,$schName,$year); //reloading the page after updating
}
//---------------------------------------------------------------------------------------------------------------
}
?>


Messages In This Thread
Need help on query string - by El Forum - 07-31-2008, 12:21 AM
Need help on query string - by El Forum - 07-31-2008, 01:05 AM
Need help on query string - by El Forum - 07-31-2008, 01:14 AM
Need help on query string - by El Forum - 07-31-2008, 03:11 AM
Need help on query string - by El Forum - 07-31-2008, 04:32 AM
Need help on query string - by El Forum - 07-31-2008, 05:08 AM
Need help on query string - by El Forum - 08-02-2008, 05:51 AM
Need help on query string - by El Forum - 08-02-2008, 05:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB