Hi,

I am having alot of difficulties trying to understand how to add a php file which does some processing and then returns me to the referring page.

For instance:

I have a file e.g. myFile.php

Which does some processing and at the end, executes a return to the referring page e.g.

header("Location: $referer");
exit;



Because i want to follow zencart's data /coding structure as close as possible

My question is:

1) Should i define the link as:

index.php?main_page=myFile.php&a=1&b=2 ...

or

index.php?main_page=myFile&a=1&b=2 ...


i.e. with or without the .php ending? and why the difference?

(I know the in the function: zen_href_link() the variable that does this is called $static)


2) Where do i put myFile or myFile.php so that it gets called properly?? Bearing in mind that it just executes some php code and is not a 'template' page or a displayed page?


Please if anyone can give me some hints, i would be extremely grateful!

Thanks in advance.

yM