Q&A

Q1: Is there a way to change the contents of a form field based on the value a user enters or selects in another form field?
A1: You can manipulate the contents of various form fields based on events that occur in the browser using JavaScript and VBScript. For example, if a user clicks on a check box, you can insert a value into a text field. Some browsers enable you to modify the contents of one select list based on the value selected in another. Of course, for this to work, your users’ browsers must support the language you used to accomplish these tasks. JavaScript is supported by most newer Web browsers, and VBScript is supported by versions of Internet Explorer starting with 3.0.
Q2: Is it possible to submit a form without a submit ...

Get Sams Teach Yourself CGI in 24 Hours, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.