jgsketch
10-03-2007, 12:53 PM
Since my clients come to me already paid for hosting, I've managed to get with the other website and have setup session variables to be passed from their site to mine, so that customer will not have to re-enter all their personal information, the signup form will be prepopulated in WHMCS's signup page.
I have got it working on a test signup page as well as being able to echo data on my custom pages. But when I go and transfer the code into the actual signup page, the process no longer works. Very frustrating.
Is there any kind of session variable time out setting in WHMCS or in the code on any pages that could be preventing me from using them?
Here is a snippet of the signup page and the echo's I'm using:
<? session_start(); ?>
<tr><td width=120>
{$LANG.clientareafirstname}
</td><td>
<input type="text" name="firstname" size=30
value="<? echo $_SESSION['FirstName']; ?>">
*</td></tr>
Here is the sessions. I put this code on my front page index.php, the landing page from the site that is passing the data from.
<?
@session_start();
$_SESSION['RepID'] = $_REQUEST['RepID'];
$_SESSION['Company'] = $_REQUEST['Company'];
$_SESSION['FirstName'] = $_REQUEST['FirstName'];
$_SESSION['LastName'] = $_REQUEST['LastName'];
$_SESSION['Email'] = $_REQUEST['Email'];
$_SESSION['BillStreet1'] = $_REQUEST['BillStreet1'];
$_SESSION['BillStreet2'] = $_REQUEST['BillStreet2'];
$_SESSION['BillCity'] = $_REQUEST['BillCity'];
$_SESSION['BillState'] = $_REQUEST['BillState'];
$_SESSION['BillPostalCode'] = $_REQUEST['BillPostalCode'];
$_SESSION['WorkPhone'] = $_REQUEST['WorkPhone'];
?>
I've tried not useing the session_start tag on the order page, since WHMCS said sessions are already active within WHMCS. No change.
However, when I do add the session_start tag to the top of the encrypted order.php page in WHMCS, I can echo the data. Unfortunatly because it's an encrypted page, I get an error after the echoed data.
WHMCS says that is probably a problem with my code and that the sessions should have passed along just fine.
Could someone let me know if my code is wrong? I can't seem to figure this out. Thanks.
I have got it working on a test signup page as well as being able to echo data on my custom pages. But when I go and transfer the code into the actual signup page, the process no longer works. Very frustrating.
Is there any kind of session variable time out setting in WHMCS or in the code on any pages that could be preventing me from using them?
Here is a snippet of the signup page and the echo's I'm using:
<? session_start(); ?>
<tr><td width=120>
{$LANG.clientareafirstname}
</td><td>
<input type="text" name="firstname" size=30
value="<? echo $_SESSION['FirstName']; ?>">
*</td></tr>
Here is the sessions. I put this code on my front page index.php, the landing page from the site that is passing the data from.
<?
@session_start();
$_SESSION['RepID'] = $_REQUEST['RepID'];
$_SESSION['Company'] = $_REQUEST['Company'];
$_SESSION['FirstName'] = $_REQUEST['FirstName'];
$_SESSION['LastName'] = $_REQUEST['LastName'];
$_SESSION['Email'] = $_REQUEST['Email'];
$_SESSION['BillStreet1'] = $_REQUEST['BillStreet1'];
$_SESSION['BillStreet2'] = $_REQUEST['BillStreet2'];
$_SESSION['BillCity'] = $_REQUEST['BillCity'];
$_SESSION['BillState'] = $_REQUEST['BillState'];
$_SESSION['BillPostalCode'] = $_REQUEST['BillPostalCode'];
$_SESSION['WorkPhone'] = $_REQUEST['WorkPhone'];
?>
I've tried not useing the session_start tag on the order page, since WHMCS said sessions are already active within WHMCS. No change.
However, when I do add the session_start tag to the top of the encrypted order.php page in WHMCS, I can echo the data. Unfortunatly because it's an encrypted page, I get an error after the echoed data.
WHMCS says that is probably a problem with my code and that the sessions should have passed along just fine.
Could someone let me know if my code is wrong? I can't seem to figure this out. Thanks.
