Affiliate Coder Setup Instructions. Open all the files in a text editor. ------------------ 'affil_coder.cgi' ------------------ 1. Define the correct path to Perl on the first line of 'affil_coder.cgi'. 2. Follow the rest of the setup intructions contained in this file. --------------------- 'affil_template.txt' --------------------- 1. You can put any HTML affiliate code you like in this file. BUT: Where you would normally put the Affiliate ID or nickname, put this instead: THEIR_AFFILIATE_ID. An example of my own affiliate HTML code is included. What happens is that 'affil_coder.cgi' looks for this text string , and replaces it with the ID entered by your affiliate in the form. It then writes the HTML code to the next file: -------------------- 'affil_coder.html' -------------------- Leave this page completely blank. -------------------- 'affil_form.html' -------------------- In the HTML code of this file, change the URL of affil_coder.cgi to the location where you put it. =================== Uploading the files ============================ 1. Make a subdirectory in your cgi-bin called 'affil_coder'. 2. Make a sub-directory in your web directory called 'affil_coder'. 3. Upload 'affil_coder.cgi' and 'affil_template.txt' to the 'affil_coder' cgi-bin sub-directory. 4. Upload 'affil_form.html' and 'affil_coder.html' to the web sub-directory. 5. Chmod 'affil_coder.cgi' to 705, and 'affil_template.txt' to 606. 6. Chmod 'affil_coder.html' *and* the web sub-directory it's in, to 606. ============================================================== That's it. It should now work. If not, read my tutorials on telent and setting up cgi-scripts, in my online ebook at http://www.tigertom.com/ebook/web/dem/index.html. They cover all you need to know about setting up cgi-scripts and forms.