September 2002
Intermediate to advanced
544 pages
13h 6m
English
In the previous section, you saw how you can handle two types of requests with one script. Well, there’s nothing to say you can’t handle any number of different types of requests within the same script. The script just has to be able to determine what it’s supposed to do based on the parameters that are passed in.
The simplest approach here is to use a parameter to specify exactly what action the script is supposed to take. Unsurprisingly, many people have standardized on calling this parameter action in their scripts. For example, let’s say you’re writing a script that enables someone to view a list of records, add records, delete records, and edit records. If you wanted to use the same script for all of those ...
Read now
Unlock full access