Embperl - building dynamic websites with Perl
Home
Features
Introduction
Embperl
Embperl::Object
Embperl 2 Advanced
Documentation
Installation
Support
Changes
Stable 3.0.0
Beta 3.0.0-rc.2
>
Deutsch
>
English
Content - Embperl::Intro - Introduction to Embperl
[ Next: What is Embperl? >> ]
Content
What is Embperl?
How to Embed Perl Code in HTML Documents
Dynamic Tables
Form fields
Maintaining persistent (session) data
Breaking your code up into components
Debugging
Database access
Security
Escaping/Unescaping
How to continue
Content
What is Embperl?
How does it compare to other templating solutions ?
Focus of this document
How to Embed Perl Code in HTML Documents
1.) [- ... -] Execute code
2.) [+ ... +] Output the result
3.) [! ... !] Execute code once
Meta-Commands
Dynamic Tables
Display a Perl Array
Simple DBI Example
Form fields
Posted form data available in %fdat/@Z<>ffld
Input/Textarea/Select tags take values from %fdat
[$ hidden $]
A simple Text input / Confirmation form
Maintaining persistent (session) data
Breaking your code up into components
Subroutines
Execute
Creating Component Libraries
Debugging
Embperl log file
Database access
Plain DBI
DBIx::Recordset
Search Example
Search sets up a Recordset object
Data can accessed as array or via the current record
Fields can be accessed by name
PrevNextForm generates no/one/two buttons depending if there are more records to display
As for Search there are methods for Insert/Update/Delete
Database table can also tied to a hash
Security
Escaping/Unescaping
Input: unescaping
Output: escaping
How to continue
[ Next: What is Embperl? >> ]
© 1997-2023 Gerald Richter /
actevy