Registering Session
| From: | Ralph Guzman | Date: | Wed, 30 Jul 2003 22:09:02 +0000 |
| Subject: | Registering Session | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-157610@lists.php.net to get a copy of this message | ||
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?