> I am working on an AS/400 Developing web based ordering carts. A problem I
> have run into is redirecting the customer back to the page he ordered from
> after his order is complete.
> I have the site set up where different types of products are on different
> pages and I would like the customer to be redirected back to the exact site
> they ordered from. NOT to http://setsite.com/setpage.htm
> but http://referedsite.com/referedpg.htm
>
> Second I want to make sure that any customer who is using the site has
> cookies enabled since it is the method being used to track the order.
> I suppose that this can be done with Java Script but im not sure. I want to
> check to see if they have cookies enabled (maybe by sending a test cookie)
> and then if they dont i want them to be alerted.
The way you do it sort of depends on what language you are doing it in.
Are you using PHP, Perl, Python, C? I dont know if any of the scripting
languages run on AS/400's. Also, these sort of things also depend on the
web server software you are running on the AS/400. Apache provides environment
variables such as HTTP_REFERER and HTTP_HOST that you would be able to use
to redirect people. What web server are you running? Cookies can be
handled by javascript but depending on your webserver/language its
probably easier to not use javascript for this.
> Thanks,
> Jeff Lee
> Think Solutions Inc.
___________________
Nolug mailing list
nolug@nolug.org
Received on 06/13/02
This archive was generated by hypermail 2.2.0 : 12/19/08 EST