~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ! Attach Variables ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Hey I'm happy to see you here again. This time I want to demonstrate how you can attach variables throught cookies and/or GET/POST! Almost evrytime you need to bring some variables from page to page, so now you can attach variables to your script's output via links/forms and via cookies! Example: ******************************* 1. Installation ******************************* Please make sub directory 'attach' into your WebTools/htmls and copy file: attach.whtml there after this you can run it on this way: http://www.july.bg/cgi-bin/webtools/process.cgi?file=attach/attach.whtml where: "http://www.july.bg/" is your host, "cgi-bin" is your perl script directory, and "webtools" is your WebTools directory! NOTE: process.cgi is a base (system) script for me (respective you :) YOU ALWAYS NEED TO USE IT!!! (IT IS YOUR Perl/HTML COMPILER :) NOTE: See that extension of script is .whtml process.cgi support follow extensions: .html .hml .whtml .cgihtml .cgi , but with .whtml and .cgihtml you can use highlightings in UltraEdit (nice text editor for programmers :-) File "attach.html" contain
and respective ACTION has value: /cgi-bin/webtools/process.cgi?file=... Please skim this file for HREF and ACTION, and edit where is needful! ******************************* 2. Example explanation ******************************* Before I start code explanation you may need to look over browser's output... Done I thing now evrything is clear?!?... Well maby you need some hint? :-))) First of all take a look at this pice of code: if ($action eq '') { ?> //-->