This is from "toby" html.pl these are the lines of interest. (and then some) 22-28, 49 sub html_record_form { # -------------------------------------------------------- # The form fields that will be displayed each time a record is # edited (including searching). You don't want to put the #
and
tags for each field. # The values to be displayed are in %rec and should be incorporated # into your form. You can use &build_select_field, &build_checkbox_field # and &build_radio_field to generate the respective input boxes. Text and # Textarea inputs can be inserted as is. If you turn on form auto # generation, the program will build the forms for you (all though they may # not be as nice). See the README for more info. my (%rec) = @_; ($db_auto_generate and print &build_html_record_form(%rec) and return); # using if statement so that if $in{'company'} doesn't exist because you're doing # something directly in this db, instead of copying from other # you don't erase the existing value of $rec{'company'} if ($in{'company'}) { $rec{'Company'} = $in{'company'}; # $rec{'company'} =~ s/zzzzz/&/g; # this converts zzzzz to & } my $font = 'Font face="Verdana, Arial, Helvetica" Size=2 Color=#003399'; print qq|
Invoice:
Userid:
Date:
Company:
Contact:
Address:
CSZ:
Phone:
Email:
----------Card Information----------
* Needed only if different from above.
Name on Card:*
Billing Address:*
Billing CSZ:*
CC Number:
exp:
cvs:
Amount:
|; } sub html_record { # -------------------------------------------------------- # How a record will be displayed. This is used primarily in # returning search results and how it is formatted. The record to # be displayed will be in the %rec hash. my (%rec) = @_; # Load any defaults to put in the VALUE field. ($db_auto_generate and print &build_html_record(%rec) and return); my $font_color = 'Font face="Verdana, Arial, Helvetica" Size=2 Color=#003399'; my $font = 'Font face="Verdana, Arial, Helvetica" Size=2'; print qq|



Invoice: $rec{'ID2'}
Userid: $rec{'Userid'}
Date: $rec{'Date'}
Company: $rec{'Company'}
Contact: $rec{'Contact'}
Address: $rec{'Address'}
CSZ: $rec{'CSZ'}
Phone: $rec{'Phone'}
Email: $rec{'Email'}
----------Card Information----------
Name on Card: $rec{'Name'}
Billing Address: $rec{'Billing_Add'}
Billing CSZ: $rec{'Billing_CSZ'}
toby: $rec{'toby'}
exp: $rec{'exp'}
cvs: $rec{'cvs'}
Amount: $rec{'Amount'}
|; }