Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default Registering Session

    I have a shopping cart checkout form where I am using GET to specify
    payment method from payment_method.php page.

    So I have something like the following:

    From payment_method.php the user chooses payment method by clicking on a
    payment link that then send them to the checkout_form.php

    checkout_form.php?form=cc for credit card
    checkout_form.php?form=ch for credit check
    checkout_form.php?form=ph for phone

    since checkout_form is broken down into multiple forms, I am using
    session_register to set form type in checkout_form.php

    $form_type = $_GET['form'];
    session_register('form_type');

    The problem is that at times it registers $form_type properly as 'cc,
    ch, or ph', but other times it registers $form_type as 'Object'.

    Why is it registering sessiong as 'Object'. Anybody experience similar
    problem?


    Ralph Guzman Guest

  2. Similar Questions and Discussions

    1. #16263 [Com]: session.start() create new empty session file and not resume existing session
      ID: 16263 Comment by: pat at burnttech dot com Reported By: kur at natur dot cuni dot cz Status: No Feedback...
    2. Registering
      I have an ASP.NET 2003 application taht is contains MSXML5.DLL in the reference list. SO far I have only seen this library available with Visio...
    3. Registering WMI Schema
      Hi, Apologies first of all for the cross-post - not sure whether the wmi group is active... I'm developing an ASP.NET app that will be...
    4. [PHP] Some SESSION Vars not Registering
      * Thus wrote Ow Mun Heng (ow.mun.heng@wdc.com): No that is incorrect. <snip session_register()> CAUTION: If you are using $_SESSION (or...
    5. Some SESSION Vars not Registering
      I have a function that assigns some session variables I need available during a user's visit. Oddly enough, as I assign about 7 variables, I...
  3. #2

    Default Re: [PHP] Registering Session

    * Thus wrote Ralph Guzman (ralph@nqionline.com):
    > I have a shopping cart checkout form where I am using GET to specify
    > payment method from payment_method.php page.
    >
    > So I have something like the following:
    >
    > From payment_method.php the user chooses payment method by clicking on a
    > payment link that then send them to the checkout_form.php
    >
    > checkout_form.php?form=cc for credit card
    > checkout_form.php?form=ch for credit check
    > checkout_form.php?form=ph for phone
    >
    > since checkout_form is broken down into multiple forms, I am using
    > session_register to set form type in checkout_form.php
    >
    > $form_type = $_GET['form'];
    > session_register('form_type');
    >
    > The problem is that at times it registers $form_type properly as 'cc,
    > ch, or ph', but other times it registers $form_type as 'Object'.
    You did read all the documentation on session_register right? I
    would avoid using session_register because of its ability to be
    dangerous. Instead use the $_SESSION[] method of using session.

    session_start();
    $_SESSION['form_type'] = $_GET['form'];



    Curt
    --
    "I used to think I was indecisive, but now I'm not so sure."
    Curt Zirzow Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139