4 Session Variables turned into One

I have 4 sessions for shipping on my checkout page.
1. WAEC_FlatRateUnder8Ground
2. WAEC_FlatRateOver8Ground
3. WAEC_FlatRate2ndDayAir
4. WAEC_FlatRate2ndDayAirover100
They correctly display the shipping cost. I just hide all
that are empty,
one will always have a value. That's where the problem comes
in because I
don't know which will have a value.
I need to pull that shipping cost that is stored in one of
those 4 sessions
and I need to put it into something like another session or a
table in a
database. Because I don't know which Shipping Method will be
used, I can't
just assign one of the four to a shipping variable.
Any ideas how I could do this?

I just realized that it doesn't need quotes around the dim
name.
"lee" <[email protected]> wrote in message
news:e2autc$12e$[email protected]..
>I just don't think there is anything in this dim
WAEC_SHIPPING. Does it
>need to have quotes around it?
>
> <%
> Dim WAEC_SHIPPING
>
> 'Check First
> If Not isEmpty(WAEC_FlatRateUnder8Ground) Then
> WAEC_SHIPPING = WAEC_FlatRateUnder8Ground
> End If
>
> 'Check Second
> If Not isEmpty(WAEC_FlatRateOver8Ground) Then
> WAEC_SHIPPING = WAEC_FlatRateOver8Ground
> End If
>
>
> 'Check Third
> If Not isEmpty(WAEC_FlatRate2ndDayAir) Then
> WAEC_SHIPPING = WAEC_FlatRate2ndDayAir
> End If
>
> 'Check Fouth
> If Not isEmpty(WAEC_FlatRate2ndDayAirover100) Then
> WAEC_SHIPPING = WAEC_FlatRate2ndDayAirover100
> End If
> %>
>
> "Tready29483" <[email protected]> wrote
in message
> news:e2ao4a$ln8$[email protected]..
>>I would make it another Session variable. You can
manually edit that
>> dreamweaver code by the way:
>>
>> <%
>> if (cStr(Session("WAEC_FlatRateUnder8Ground"))
<> "") then
>> Session("ssTotalShipping") = "" & cStr(
>> Application("FlatRateUnder8Ground") ) &
>> ""
>> end if
>> %>
>>
>> make one of those for each Session that you have:
>>
>> FlatRateUnder8Ground
>> FlatRateOver8Ground
>> FlatRate2ndDayAir
>> FlatRate2ndDayAirover100
>>
>>
>>
>
>

Similar Messages

  • Can XSQL create multiple session variables using only one database call?

    Right now if I want to set session variables for username and accesslevel, I code out like this:
    <xsql:set-session-param name="name" bind-params="username password">
    SELECT DISTINCT USERNAME
    FROM LKUP_USER
    WHERE USERNAME = ? AND PASSWORD = ? AND ACCESSLEVEL = 0
    </xsql:set-session-param>
    <xsql:set-session-param name="authlvl" bind-params="username password">
    SELECT DISTINCT ACCESSLEVEL
    FROM LKUP_USER
    WHERE USERNAME = ? AND PASSWORD = ? AND ACCESSLEVEL = 0
    </xsql:set-session-param>Is there any way to do it so that I don't have to do multiple queries to the database to set session variables? i.e., something like this:
    <xsql:set-multiple-session-param name="user authlvl" bind-params="username password">
    SELECT DISTINCT USERNAME,
    ACCESSLEVEL
    FROM LKUP_USER
    WHERE USERNAME = ? AND PASSWORD = ? AND ACCESSLEVEL = 0
    </xsql:set-multiple-session-param>Sort of like how bind-params works. Setting bind-params="username password" makes the first ? akin to username and the next ? akin to password.
    Is this functionality already in existence?
    Thanks!
    Malik Graves-Pryor

    Not currently possible to collapse into one request without doing it in a custom action handler.
    A custom action handler can:
    [list=1]
    [*]Get the current JDBC connection from the XSQLPageRequest
    [*]Get the SQL statement to perform using the function getActionElementContent
    [*]Handle any bind parameters specified an a bind-params attribute on the action element by calling handleBindVariables()
    [*]Execute and fetch the row from the query
    [*]Check to see that the return value of getPageRequest().getRequestType() equals the value "Servlet"
    [*]Cast the page request to an XSQLServletPageRequest and call getHttpServletRequest()
    [*]Call getSession() on the request
    [*]Set the session variables you want to
    [*]Close the JDBC statement
    [list]
    will consider a built-in enhancement for a future XSQL release.

  • How do I make multiple iWeb websites without them turning into one?

    I made a website with no problems with iWeb. I published it to a folder and uploaded it to my domain host with no problems.
    I wanted to make a new, separate stand-alone website with iWeb but I could find no way to do that. When I go to FILE and NEW SITE, it places that in the list of my other website. I created that new site, published it to a new folder, and the two websites became one large one!
    I thought iWeb was like MS Word in terms of one program making an indefinite number of independent websites.
    How can I do this?
    Thanks.

    You can certainly use it for general design if it
    meets your needs. Its sites can be put on any server
    and the different "sites" in the organizer have
    distinct urls regardless of where you put them.
    Not sure what you mean here. I think you are equating
    distinct URL's with distinct Web-Sites. I'm pretty sure most
    people wouldn't interpret things that way. By "site" most
    people mean just the part after the "://" and before the
    next "/". Like www.apple.com is a different site from
    www.google.com not www.apple.com/developer is
    one site and www.apple.com/discussions is another.
    When
    you upload from a folder via ftp you can upload only
    one site it you want,
    That is true. Just because iWeb writes everything
    out doesn't mean one has to upload it all. Just takes
    a little longer to generate the site. That is a good
    workaround.
    and you can keep site data
    totally separate by using different user accounts or
    different Domain files. Here are some tips for other
    servers:
    http://homepage.mac.com/thgewecke/iwebserver.html
    I had a look at this page and think those suggestions are
    interesting but not really for me. I'm neither a Web Designer
    nor a Deployment Engineer, and mostly only use the iPhoto
    publish to homepage feature. I'm just can't get that motivated
    about my personal web site. Maybe I'll check out homepage
    again.

  • Two disc album gets turned into one album on iPhone

    I downloaded a two-disc album to my computer and in iTunes it showed up as two different albums, one for each disc. I corrected this issue by renaming the album name to be the same for all the songs on both discs ("The Mozart Album" as opposed to "The Mozart Album [Disc 1]" and "The Mozart Album [Disc 2]"). I also re-numbered the tracks to make sense in this new one-album solution (the tracks from the first disc came first, and then the tracks from the second disc followed, as opposed to having duplicate track numbers).
    This seemed to work fine on iTunes. However, when I then synced my iPhone to my computer, to upload the new album to my iPhone, two albums appeared in the music app. Both of them had the same name ("The Mozart Album") and also all of the tracks retained their modified track numbers. So one album was called "The Mozart Album" and had tracks 7-19, and the other album was called "The Mozart Album" and had tracks 1-6. There seemed to be no reason why the two albums shouldn't just be one album with all the tracks from both discs, as I had created in iTunes. I figured it must be something to do with the properties of the actual m4a files, but I couldn't find anything in the properties that would've caused this (I was looked for something like a "Disc Number" property). There is the fact that the original titles of the files had 01 and 02 at the beginning of each track to indicate whether the track belonged to the first disc or the second disc, respectively, but I don't think that the name of the file would affect how they are sorted in the music app on the iPhone.
    I am at a loss for how to force these tracks to be consolidated in one album as they should be on my iPhone and I would appreciate any help that can be offered.

    I checked for differences in the fields across all of the tracks and found none that shouldn't be there. The track numbering is 1 through 6 on Disk 1 and 1 through 13 on Disk 2. They are all tagged "of 2" in the Disk number entries. See below:
    I also tried un-syncing and re-syncing the album to my phone and nothing changed. See below:

  • Bookmarks going haywire. multiplying over and over again and also all links have turned into one single links copied into all folders

    Sir, all my bookmarks are multiplying over and over again . Although i have been able to restore them to the previous date but all links are now converted to same link website . Not only that it is being synced across all my devices . Please sir kindly help me resolve it. The only links that are correcclty displayed are "most visited " ones.

    Problems with bookmarks and history not working properly can be caused by a corrupted places.sqlite database file.
    You can check for problems with the places.sqlite database file in the Firefox Profile Folder.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file

  • Session variables passing to functions

    I am trying to create a page that adds property listings and
    then add features to the properties.
    i attached the code for the page that is having issues. I
    have session variables turned on and here is the function and i
    cannot get the last listing_id in the listing table to be sent.
    I have a function to find the last listingID but the
    addlistingfeature doesnt like the return type
    <cffunction name="AddListingFeature" returntype="void">
    <cfargument name="Feature_ID" type="string"
    required="true">
    <cfargument name="Listing_ID" type="string"
    required="true">
    <cfquery datasource="#request.realestatedata#">
    Insert Into ListingsFeatures_T(Listing_ID,Feature_ID)
    Values('#Trim(arguments.Listing_ID)#','#Trim
    (arguments.Feature_ID)#')
    </cfquery>
    </cffunction>

    Hi,
    Your code is showing that you're passing the Listing_ID as
    though the code "knows" what it is. If you don't have it in the
    code, you need to query the db and obtain it. If it is the last
    record, something like SELECT max(Listing_ID), or if this is a new
    row, is it something like the max(Listing_ID) + 1.
    cfwild

  • What is session variables in BSP

    Hi
    I am using using IC Webclient. can anyone help me to findout the details about session varibales ?
    Best Regards
    Bhavishya

    hi,
    Session variables is a handy way to define a persistent variable.The standard variables used in ColdFusion can be only transferred or sent to the next page before it is necessary to restate the variable. In some situations, you may want to define a variable that will apply to all the pages during a single session of the user. An example is when the pages a user sees are personalized to his or her specific needs. In such a case, session variables are defined and used.
    Session variable persistent
    A session variable is one of several types of variables that persist across multiple templates:
    >Server variables - Accessible by all clients and applications on a single
    >Application variables - Tied to a single application and accessible by multiple clients
    >Client variables - Tied to a single client over multiple sessions
    >Session variables - Exist for one client or browser during a single session
    >Cookie variables
    Session variables are designed to hold information that you seldom write but are read often.
    Defining session variables
    Session variables are normally defined in the Application template, but can be also defined on all applicable pages.
    Application template
    The standard method of using session variables is to define them in the application.cfm template, which is a special ColdFusion page that is processed before the other pages in a session. It usually should be in the session root directory.
    CFAPPLICATION tag
    To enable the use of session variables, as well as client and application management, you should use the CFAPPLICATION tag in the Application template. A typical tag would be:
    <CFAPPLICATION NAME="Name"
    SESSIONMANAGEMENT="Yes"
    SESSIONTIMEOUT="#CreateTimeSpan(0, 0, 20, 0)#">
    where:
    >NAME is required to avoid problems if you have session variables tied to separate applications.
    >SESSIONMANAGEMENT is required to enable the session variables.
    >SESSIONTIMEOUT is optional and limits the time the variables will stay in memory (20 minutes in the example) Note that the default is 20 minutes, so you really may not need this unless you want to change that number.
    Setting variables
    After the CFAPPLICATION tag, you can set your session variables, using the CFSET tag. You must always refer to session variables with the prefix session. Thus, you could define a session variable, such as:
    <CFSET session.name="#form.othername#">
    Should lock variables
    You should lock the session variables to avoid problems when several people are using the system at the same time. An example of this is:
    <CFLOCK TIMEOUT="30" NAME="#session.sessionID#" TYPE="Exclusive">
    <CFSET session.name="#form.othername#">
    </CFLOCK>
    Defined on applicable pages
    A problem in using the Application.cfm template is that it is often difficult to change your session variables, once they have been set. An alternative is to use the CFAPPLICATION tag in each applicable page:
    <CFAPPLICATION NAME="Name"
    SESSIONMANAGEMENT="Yes">
    You then can define the session variable in the first page, accessed:
    <CFOUTPUT QUERY="return">
    <CFSET session.ID="#ID#">
    </CFOUTPUT>
    This is a compromise between the standard method and defining the variable on each page.
    Example of use
    Suppose a user logged in to the site. His name could be sent through a form and entered in Application.cfm. Then the session will constantly refer to him by name.
    Application.cfm
    <CFAPPLICATION NAME="Name"
    SESSIONMANAGEMENT="Yes">
    <CFSET session.name="#form.othername#">
    Start.cfm
    <CFOUTPUT>
    <H1>Hello #session.name#</H1>
    </CFOUTPUT>

  • How do I insert a session variable into a record?

    I can’t figure out how to insert the value passed by a
    session variable into a record.
    I have a form I want to use to insert a record. I pass
    session variables to this page and want to insert one of them into
    the record. The session information is:
    session_start();
    $_SESSION['usename'] = $_POST['username'];
    $idvar = $_SESSION['id'];
    $_SESSION[‘id’] is the user_id that I want to
    insert into the record.
    I know $idvar is getting to the page with the form because I
    can echo it.
    The insert code looks like this:
    if ((isset($_POST["MM_insert"])) &&
    ($_POST["MM_insert"] == "register")) {
    $insertSQL = sprintf("INSERT INTO h_genres (user_id,
    username, contrib_to, Advertising, Annual_Reports, Leader_Content,
    Member_Content, Brochures) VALUES (%s, %s, %s, %s, %s, %s, %s,
    %s)",
    GetSQLValueString($_POST['user_id'], "int"),
    GetSQLValueString($_POST['username'], "text"),
    GetSQLValueString($_POST['contrib_to'], "text"),
    GetSQLValueString(isset($_POST['Advertising']) ? "true" :
    "", "defined","'Y'","'N'"),
    GetSQLValueString(isset($_POST['Annual_Reports']) ? "true" :
    "", "defined","'Y'","'N'"),
    GetSQLValueString(isset($_POST['Leader_Content']) ? "true" :
    "", "defined","'Y'","'N'"),
    GetSQLValueString(isset($_POST['Member_Content']) ? "true" :
    "", "defined","'Y'","'N'"),
    GetSQLValueString(isset($_POST['Brochures']) ? "true" : "",
    "defined","'Y'","'N'"));
    mysql_select_db($database_hauw, $hauw);
    $Result1 = mysql_query($insertSQL, $hauw) or
    die(mysql_error());
    I have a hidden field for the user_id:
    <input name="user_id" type="hidden" id="user_id" />
    I think I need to get the value in $idvar into user_id but I
    don’t know how.
    Any help is appreciated.

    awsweb wrote:
    > I have a hidden field for the user_id:
    > <input name="user_id" type="hidden" id="user_id"
    />
    >
    > I think I need to get the value in $idvar into user_id
    but I don?t know how.
    <input name="user_id" type="hidden" id="user_id"
    value="<?php echo
    $idvar; ?>" />
    David Powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • 4 Sessions Into One?

    I have 4 sessions for shipping on my checkout page.
    1. WAEC_FlatRateUnder8Ground
    2. WAEC_FlatRateOver8Ground
    3. WAEC_FlatRate2ndDayAir
    4. WAEC_FlatRate2ndDayAirover100
    They correctly display the shipping cost. I just hide all
    that are empty,
    one will always have a value. That's where the problem comes
    in because I
    don't know which will have a value.
    I need to pull that shipping cost that is stored in one of
    those 4 sessions
    and I need to put it into something like another session or a
    table in a
    database. Because I don't know which Shipping Method will be
    used, I can't
    just assign one of the four to a shipping variable.
    Any ideas how I could do this?

    I just realized that it doesn't need quotes around the dim
    name.
    "lee" <[email protected]> wrote in message
    news:e2autc$12e$[email protected]..
    >I just don't think there is anything in this dim
    WAEC_SHIPPING. Does it
    >need to have quotes around it?
    >
    > <%
    > Dim WAEC_SHIPPING
    >
    > 'Check First
    > If Not isEmpty(WAEC_FlatRateUnder8Ground) Then
    > WAEC_SHIPPING = WAEC_FlatRateUnder8Ground
    > End If
    >
    > 'Check Second
    > If Not isEmpty(WAEC_FlatRateOver8Ground) Then
    > WAEC_SHIPPING = WAEC_FlatRateOver8Ground
    > End If
    >
    >
    > 'Check Third
    > If Not isEmpty(WAEC_FlatRate2ndDayAir) Then
    > WAEC_SHIPPING = WAEC_FlatRate2ndDayAir
    > End If
    >
    > 'Check Fouth
    > If Not isEmpty(WAEC_FlatRate2ndDayAirover100) Then
    > WAEC_SHIPPING = WAEC_FlatRate2ndDayAirover100
    > End If
    > %>
    >
    > "Tready29483" <[email protected]> wrote
    in message
    > news:e2ao4a$ln8$[email protected]..
    >>I would make it another Session variable. You can
    manually edit that
    >> dreamweaver code by the way:
    >>
    >> <%
    >> if (cStr(Session("WAEC_FlatRateUnder8Ground"))
    <> "") then
    >> Session("ssTotalShipping") = "" & cStr(
    >> Application("FlatRateUnder8Ground") ) &
    >> ""
    >> end if
    >> %>
    >>
    >> make one of those for each Session that you have:
    >>
    >> FlatRateUnder8Ground
    >> FlatRateOver8Ground
    >> FlatRate2ndDayAir
    >> FlatRate2ndDayAirover100
    >>
    >>
    >>
    >
    >

  • How to call a session variable into sql?

    for example, I have a coldfusion session variable - session.testvar
    I am writing a Stored procedure in sql server 2000. The query within my stored procedure needs to insert a value into a table. The value needs to be my CF session variable. I have no idea how this is done, does anyone else have a hunch?
    I am using coldfusion 8 and sql server 2000.

    Pass it to the SP as a variable
    - there are examples in the cf docs

  • ESB Console turns Request/Response message into One Way message

    Hi folks,
    have come across a strange situation and wondered if anyone else had come across this. Maybe it's fixed as part of a patch set.
    I'm running SOA Suite 10.1.3.1.0 on Windows.
    After I've created and deployed a Request/Response service (either RS or SOAP Invocation Service) if I go to the ESB Console and click on "Apply" in say the Definition tab, my service turns into a One Way service.
    This then causes null pointer exceptions when I run my process, as you might expect.
    If I redeploy from JDev and leave the "Apply" button alone I'm back in business.
    Is this something that anyone else has had a problem with?

    Hi.
    I would recommend you to install version 10.1.3.3 of SOA Suite
    http://download.oracle.com/otn/nt/ias/10133/ias_windows_x86_101330.zip
    http://download.oracle.com/otn/linux/ias/10133/ias_linux_x86_101330.zip
    Also, use the JDev 10.1.3.3
    http://www.oracle.com/technology/software/products/jdev/htdocs/soft10133.html
    They are supposed to be much more stable.
    After using the new release, let us know if you still run into this problem.
    Denis

  • READING INTO ONE VARIABLE

    HI
    HOW CAN I READ VALUE INTO ONE VARIABLE.???
    ie,
           IN RUNTIME IF IM ENTERING VALUE TO VARIABLE 'A'  MEANS   HW CAN I TAKE THE VALUE TO 'A'.

    DYFIELDS-FIELDNAME ='<Parameter Name>'.
    APPEND DYFIELDS.
    DATA DYFIELDS LIKE DYNPREAD OCCURS 1 WITH HEADER LINE.
    CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
    DYNAME = SY-CPROG
    DYNUMB = SY-DYNNR
    TABLES
    DYNPFIELDS = DYFIELDS .
    READ TABLE DYFIELDS INDEX 1.
    This function module will read out the values into Internal table DYNFIELDS.
    Use this function module at  " On value request for <parameter>.

  • How do I turn off automatic bookmark creation when combining multiple PDFs into one?

    When I combine multiple PDFs into one, I need Adobe to use the CUSTOM bookmarks I created in the original PDFs. I do NOT want the additional PDF name as a bookmark in this instance. Is there a way to turn this option OFF in Acrobat Professional? I have version 9.

    You can not automatically turn off this action nor can you remove the 'file_name.pdf' heading, but you could add a button or menuitem to remove the 'file_name.pdf' from the bookamarks. Yes, it is one more step to perform when combining PDFs, but is you want until you have all of the PDFs combined you only need do it once.
    Removing filename bookmarks created by Acrobat by Sean Stewart
    From the above article:
    "With the release of Acrobat 6 came the ability to create a composite (binder) document from multiple files, (i.e. File > Create PDF > From Multiple Files.) When this is done, Acrobat automatically inserts a new top level bookmark at the start of each new file. The bookmark title will correspond to the source filename of the source file. While this level of separation can be helpful, it is counterproductive when the user wants the bookmark tree in the merged document to be continuous.
    "Here's a sample JavaScript to remove the top level bookmarks from the bookmark tree. This script will look for a ".pdf" extension to decide whether to remove the bookmark."
    With some additional coding you can add menu item or toolbar button.

  • Getting two session varibles into one hidden form field

    In a hypothetical exaple, if my first session variable is kt_user_name and it's value is bestperson, and my second variable session is kt_exerreference and it's value is ex1a, I'd like have the value submitted in the hidden form field to be bestpersonex1a (without any spaces if possible). This is the code that I have for the hidden form field that submits the server variables:
    <br />
    <br />
    <form>
    <input type="hidden" name="exerreference" id="exerreference" value="<?php echo $_SESSION['kt_user_name'].$_SESSION['kt_login_user']; ?>" />
    <br />
    <br />But the form also has a php section above the head that seems to add the values to the databse. Here is the beginning of the code with the the first 4 values:
    <br />
    <br />// Add columns
    <br />$ins_exer1-&gt;setTable("exer1");
    <br />$ins_exer1-&gt;addColumn("user_name", "STRING_TYPE", "SESSION", "kt_user_name"."kt_login_user");
    <br />$ins_exer1-&gt;addColumn("exerreference", "STRING_TYPE", "SESSION", "kt_user_name");
    <br />$ins_exer1-&gt;addColumn("Shapes_present_with_target", "STRING_TYPE", "POST", "Shapes_present_with_target");
    <br />
    <br />My question is how do I also configure the code in the 2nd string of this "Add Columns" code to insert both server variables? When I put one server variable as the value in this code (0n line 2), it only inserted the one session varialbe value (not 2 as are in the form field). As you can see, I currently have "kt_user_name"."kt_login_user" which is givig me server errors.
    <br />
    <br />Here's another idea that didn't work yet:
    <br />
    <br />// Add columns
    <br />$user = $_SESSION['kt_user_name'].$_SESSION['kt_login_user'];
    <br />$ins_exer1-&gt;setTable("exer1");
    <br />$ins_exer1-&gt;addColumn("user_name", "STRING_TYPE", "SESSION", "$user");
    <br />$ins_exer1-&gt;addColumn("exerreference", "STRING_TYPE", "SESSION", "kt_user_name");
    <br />$ins_exer1-&gt;addColumn("Shapes_present_with_target", "STRING_TYPE", "POST", "Shapes_present_with_target");
    <br />
    <br />Any ideas on the correct syntax?
    <br />
    <br />Thanks for any help.</form>

    Günter,
    <br />
    <br />I think I did as you suggested. I put this as the form field:
    <br />
    <br />
    <form>
    <input type="hidden" name="exerreference" id="exerreference" value="<?php echo $_SESSION['kt_user_name']; ?><?php echo $_SESSION['kt_login_user']; ?> <br />" />
    <br />
    <br />and changed back the Add columns section to this:
    <br />
    <br />// Add columns
    <br />$ins_exer1-&gt;setTable("exer1");
    <br />$ins_exer1-&gt;addColumn("user_name", "STRING_TYPE", "SESSION", "kt_user_name");
    <br />$ins_exer1-&gt;addColumn("exerreference", "STRING_TYPE", "SESSION", "kt_user_name");
    <br />
    <br />The form does submit now, but only the kt_user_name server varible is showing up in the exerreference field of the databaswe, not also the kt_login_user server variable.
    <br />
    <br />Any ideas on what to do to get it working right? Do I need to modify the exerreference string in the Add columns section?
    <br />
    <br />Thanks - Dale</form>

  • We got 2 new iphones one for me and one for my mom i synced mine and it backed up, when i did my moms first sync everything got wiped out and it turned into my phone how can i undo this there is no back up except mine ios 5.0.1 iphone 4s

    we got 2 new iphones one for me and one for my mom i synced mine and it backed up, when i did my moms first sync everything got wiped out and it turned into my phone how can i undo this there is no back up except mine ios 5.0.1 iphone

    I have 3 iPhones and 3 iPod syncing without problems on one computer.
    Go to Settings > General > Reset > Reset All Settings.
    On your mum's iPhone go to Settings > General > About > Name - put in your mum's name so that iTunes can tell them apart.

Maybe you are looking for