PDA

View Full Version : all .php pages?


Dampy
3rd June 2004, 07:45 AM
Mark still a little question:

When i only make the index and orderpage .php because of the includes it registers the sale in the database. So therefore the visitors must go directly to the orderpage, because when they first decide to look around the website a bit and then go to the orderpage the sale doesnt register anymore (because the pages doenst include the affinclude). So therefore i must make all my pages .php????

greetings
Dampy
Holland

mark
3rd June 2004, 12:20 PM
Hello,

it is not necessary to have all pages in php, because the information about visitor is stored in the cookie and it should be not lost when user browses throught the other pages of the site.

If it is not registering sales in this case, there can be a problem with cookie domain.
Try to set cookie in a way
SetCookie ("ref",$_GET['ref'], 0, '/');
in affiliate.php.

Also, important is that your banners point to the index page (which includes affiliate.php), because in this script the cookie is set.

There can be a problem also if visitor has cookies switched off, in this case it wil not work with cookies, and information will be lost if he'll browse to non-php page.

with regards,

maros