This is difficult to explain.
Hundreds of my questions have been answered by searching the forum. Still can't figure how to get 3 columns, and why my links.css file is not picked up on each page, but that's another day.
For now. . .
I am using Links2 as a registry of names who own a particular car. The Title field is used as the person's name. The URL field is a mailto: tag. I commented out what's cool, top rated, random search, hits among other things that are not necessary. If someone as the time, my modify page is at
http://www.happytogether.com/...y/cgi-bin/modify.cgi.
Things I don't like.
I must use the mailto: in the field that would normally be the URL. Also, Name and Contact Name is redundant as well as he 2nd and 3rd email address. Ideally I would like to remove the 2nd Name field and 3rd email field.
Briefly, my links.def file is
# Database Definition: LINKS
# --------------------------------------------------------
# Definition of your database file.
%db_def = (
ID => [0, 'numer', 5, 8, 1, '', ''],
Title => [1, 'alpha', 40, 75, 1, '', ''],
# URL => [2, 'alpha', 40, 75, 1, 'http://', '^http|news|mailto|ftp'],
# URL => [2, 'alpha', 40, 75, 1, 'mailto:', '^http|news|mailto|ftp'],
URL => [2, 'alpha', 40, 75, 1, '', '.+@.+\..+'],
Date => [3, 'date', 15, 15, 1, \&get_date, ''],
Category => [4, 'alpha', 0, 150, 1, '', ''],
Description => [5, 'alpha', '40x3', 500, 0, '', ''],
'Contact Name' => [6, 'alpha', 40, 75, 1, '', ''],
'Contact Email' => [7, 'alpha', 40, 75, 1, '', '.+@.+\..+'],
Hits => [8, 'numer', 10, 10, 1, '0', '\d+'],
isNew => [9, 'alpha', 0, 5, 0, 'No', ''],
isPopular => [10, 'alpha', 0, 5, 0, 'No', ''],
Rating => [11, 'numer', 10, 10, 1, 0, '^[\d\.]+$'],
Votes => [12, 'numer', 10, 10, 1, 0, '^\d+$'],
ReceiveMail => [13, 'alpha', 10, 10, 1, 'Yes', 'No|Yes']
);
and my add.html file is
<form action="<%db_cgi_url%>/add.cgi" method="POST">
<p>Please fill out the form completely, and we'll add your name as soon as possible.</p>
<div class="margin">
<table border ="0" cellspacing="0" cellpadding="0">
<tr><td align="right" valign="top">Name:</td>
<td><input name="Title" size="50"></td></tr>
<!-- <tr><td align="right" valign="top">URL:</td> -->
<!-- <td><input name="URL" size="50"></td></tr> -->
<tr><td align="right" valign="top">Email Address:</td>
<td><INPUT TYPE=text NAME=URL VALUE="mailto:" SIZE=50 maxlength=125></td></tr>
<tr><td align="right" valign="top">Location:</td>
<td><%Category%></td></tr>
<tr><td align="right" valign="top">Description:</td>
<td><textarea wrap="virtual" name="Description" value="" rows="3" cols="42"></textarea></td></tr>
<tr><td align="right" valign="top">Contact Name:</td>
<td><input name="Contact Name" value="" size="40"></td></tr>
<tr><td align="right" valign="top">Contact Email:</td>
<td><input name="Contact Email" value="" size="40"></td></tr>
<tr><td></td><td><input type="SUBMIT" value="Add Resource"></td></tr>
</table>
</div>
</form>
I hope someone understands what I am trying to do.
...steven
MINI Links
BMW 318ti Registry
Hundreds of my questions have been answered by searching the forum. Still can't figure how to get 3 columns, and why my links.css file is not picked up on each page, but that's another day.
For now. . .
I am using Links2 as a registry of names who own a particular car. The Title field is used as the person's name. The URL field is a mailto: tag. I commented out what's cool, top rated, random search, hits among other things that are not necessary. If someone as the time, my modify page is at
http://www.happytogether.com/...y/cgi-bin/modify.cgi.
Things I don't like.
I must use the mailto: in the field that would normally be the URL. Also, Name and Contact Name is redundant as well as he 2nd and 3rd email address. Ideally I would like to remove the 2nd Name field and 3rd email field.
Briefly, my links.def file is
# Database Definition: LINKS
# --------------------------------------------------------
# Definition of your database file.
%db_def = (
ID => [0, 'numer', 5, 8, 1, '', ''],
Title => [1, 'alpha', 40, 75, 1, '', ''],
# URL => [2, 'alpha', 40, 75, 1, 'http://', '^http|news|mailto|ftp'],
# URL => [2, 'alpha', 40, 75, 1, 'mailto:', '^http|news|mailto|ftp'],
URL => [2, 'alpha', 40, 75, 1, '', '.+@.+\..+'],
Date => [3, 'date', 15, 15, 1, \&get_date, ''],
Category => [4, 'alpha', 0, 150, 1, '', ''],
Description => [5, 'alpha', '40x3', 500, 0, '', ''],
'Contact Name' => [6, 'alpha', 40, 75, 1, '', ''],
'Contact Email' => [7, 'alpha', 40, 75, 1, '', '.+@.+\..+'],
Hits => [8, 'numer', 10, 10, 1, '0', '\d+'],
isNew => [9, 'alpha', 0, 5, 0, 'No', ''],
isPopular => [10, 'alpha', 0, 5, 0, 'No', ''],
Rating => [11, 'numer', 10, 10, 1, 0, '^[\d\.]+$'],
Votes => [12, 'numer', 10, 10, 1, 0, '^\d+$'],
ReceiveMail => [13, 'alpha', 10, 10, 1, 'Yes', 'No|Yes']
);
and my add.html file is
<form action="<%db_cgi_url%>/add.cgi" method="POST">
<p>Please fill out the form completely, and we'll add your name as soon as possible.</p>
<div class="margin">
<table border ="0" cellspacing="0" cellpadding="0">
<tr><td align="right" valign="top">Name:</td>
<td><input name="Title" size="50"></td></tr>
<!-- <tr><td align="right" valign="top">URL:</td> -->
<!-- <td><input name="URL" size="50"></td></tr> -->
<tr><td align="right" valign="top">Email Address:</td>
<td><INPUT TYPE=text NAME=URL VALUE="mailto:" SIZE=50 maxlength=125></td></tr>
<tr><td align="right" valign="top">Location:</td>
<td><%Category%></td></tr>
<tr><td align="right" valign="top">Description:</td>
<td><textarea wrap="virtual" name="Description" value="" rows="3" cols="42"></textarea></td></tr>
<tr><td align="right" valign="top">Contact Name:</td>
<td><input name="Contact Name" value="" size="40"></td></tr>
<tr><td align="right" valign="top">Contact Email:</td>
<td><input name="Contact Email" value="" size="40"></td></tr>
<tr><td></td><td><input type="SUBMIT" value="Add Resource"></td></tr>
</table>
</div>
</form>
I hope someone understands what I am trying to do.
...steven
MINI Links
BMW 318ti Registry