Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Is there a script out there to do this?
Old 02-11-2004, 02:28 PM Is there a script out there to do this?
Junior Talker

Posts: 2
Trades: 0
We will have several subdomain sites when when a customer order a product. They will click on a buy button and it sends a code to the SSL orderform and the rep name is LOCKED.

We are looking for a script that will let us know which reps the sales goes to.

We need help on this... we are using php pages to design our website.

thanks
WinfreePCS is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-12-2004, 06:46 PM
DaveMo~'s Avatar
Administrator
Defies A Status

Posts: 10,200
Name: Dave
Location: Scott Depot, West Virginia, USA
Trades: 1
I moved this over here to see if it would get more answers. Or, at least an answer!

Dave
__________________

Please login or register to view this content. Registration is FREE
:
Please login or register to view this content. Registration is FREE
:
Please login or register to view this content. Registration is FREE
:

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
?

DaveMo~ is offline
Reply With Quote
View Public Profile
 
Old 02-13-2004, 11:23 PM
Junior Talker

Posts: 2
Trades: 0
<?php

session_start();
if (!$PHPSESSID)
{
session_register('REP');


} else if ((!$REP))
{
session_register('REP');

}

?>


This will make the $REP variable global so you do not have to pass it anymore. It will remain to the browser is closed, and it is also passed to child browsers.

If you want to change the value or input a value just use normal php code.

<?php
$REP = 'John Doe';
?>
Valk is offline
Reply With Quote
View Public Profile
 
Old 02-14-2004, 12:21 AM
Christopher's Avatar
Iced Cap

Latest Blog Post:
Cross-domain AJAX with JSONP
Posts: 3,110
Location: Toronto, Ontario
Trades: 0
Keep in mind you should be using the $_SESSION array now that most hosts have register_globals varying and session_* functions are depreciated.

PHP Code:
session_start();

// set it
$REP "John Doe";
$_SESSION['REP'] =& $REP
PHP Code:
session_start();

// use it
$REP =& $_SESSION['REP'];

echo 
"Thanks " $REP "!"
__________________

Please login or register to view this content. Registration is FREE
- Latest Articles:
Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE

--
Please login or register to view this content. Registration is FREE

Christopher is offline
Reply With Quote
View Public Profile
 
Old 02-14-2004, 02:29 AM
Junior Talker

Posts: 2
Trades: 0
whoops forgot that part... thanks
Valk is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Is there a script out there to do this?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23080 seconds with 12 queries