Skip to Main Content
Perl for Web Site Management
book

Perl for Web Site Management

by John Callender
October 2001
Beginner content levelBeginner
528 pages
15h 20m
English
O'Reilly Media, Inc.
Content preview from Perl for Web Site Management

The <FORM> Tag’s ACTION Attribute

When an HTML form is submitted, the contents of all the form’s fields are bundled up and handed off to whatever script is specified in the ACTION attribute of the <FORM> tag. In the previous example page, the form is handed off to a script called mail_form.cgi located in the same directory as the form itself.

If you wanted to, you could have put some path information into the ACTION attribute and handed the form off to a script in a different directory. You could even have given a full URL (http://www.somewhere.com/somepath/somescript.cgi) and handed the form’s contents off to a script on a completely different server. But I’m digressing. The point is, the ACTION attribute of the <FORM> tag is what determines where the form data goes when the form is submitted.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Web Client Programming with Perl

Web Client Programming with Perl

Clinton Wong
Embedding Perl in HTML with Mason

Embedding Perl in HTML with Mason

Ken Williams, Dave Rolsky

Publisher Resources

ISBN: 1565926471Catalog PageErrata