Gossamer Forum
Home : Products : Links 2.0 : Customization :

Using URL for email and Title as name

Quote Reply
Using URL for email and Title as name
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

Last edited by:

steven1214: Jan 3, 2003, 7:23 PM
Subject Author Views Date
Thread Using URL for email and Title as name steven1214 9965 Jan 3, 2003, 7:21 PM
Thread Re: [steven1214] Using URL for email and Title as name
esm 9775 Jan 3, 2003, 8:35 PM
Thread Re: [esm] Using URL for email and Title as name
steven1214 9799 Jan 3, 2003, 9:32 PM
Post Re: [steven1214] Using URL for email and Title as name
PerlFlunkie 9754 Jan 4, 2003, 12:36 AM
Thread Re: [steven1214] Using URL for email and Title as name
esm 9792 Jan 4, 2003, 3:50 AM
Thread Re: [esm] Using URL for email and Title as name
Paul 9782 Jan 4, 2003, 3:52 AM
Post Re: [Paul] Using URL for email and Title as name
esm 9773 Jan 4, 2003, 6:09 AM
Thread Re: [esm] Using URL for email and Title as name
steven1214 9817 Jan 4, 2003, 5:41 AM
Thread Re: [steven1214] Using URL for email and Title as name
PerlFlunkie 9763 Jan 4, 2003, 2:26 PM
Thread Re: [PerlFlunkie] Using URL for email and Title as name
steven1214 9763 Jan 4, 2003, 4:16 PM
Thread Re: [steven1214] Using URL for email and Title as name
PerlFlunkie 9736 Jan 4, 2003, 4:56 PM
Thread Re: [PerlFlunkie] Using URL for email and Title as name
steven1214 9763 Jan 4, 2003, 5:31 PM
Thread Re: [steven1214] Using URL for email and Title as name
fuzzy logic 9727 Jan 4, 2003, 9:02 PM
Thread Re: [fuzzy thoughts] Using URL for email and Title as name
steven1214 9726 Jan 5, 2003, 7:31 AM
Thread Re: [steven1214] Using URL for email and Title as name
PerlFlunkie 9748 Jan 5, 2003, 12:41 PM
Thread Re: [PerlFlunkie] Using URL for email and Title as name
steven1214 9700 Jan 8, 2003, 7:03 PM
Thread Re: [steven1214] Using URL for email and Title as name
steven1214 9698 Jan 8, 2003, 8:15 PM
Thread Re: [steven1214] Using URL for email and Title as name
PerlFlunkie 9712 Jan 8, 2003, 9:51 PM
Thread Re: [PerlFlunkie] Using URL for email and Title as name
steven1214 9701 Jan 9, 2003, 7:26 PM
Thread Re: [steven1214] Using URL for email and Title as name
esm 9667 Jan 9, 2003, 8:41 PM
Thread Re: [esm] Using URL for email and Title as name
steven1214 9690 Jan 9, 2003, 8:57 PM
Post Re: [steven1214] Using URL for email and Title as name
PerlFlunkie 9671 Jan 9, 2003, 11:11 PM
Thread Re: [steven1214] Using URL for email and Title as name
esm 9655 Jan 10, 2003, 1:58 PM
Post Re: [esm] Using URL for email and Title as name
steven1214 3946 Jan 10, 2003, 5:21 PM
Thread Re: [esm] Using URL for email and Title as name
steven1214 3961 Jan 10, 2003, 5:56 PM
Thread Re: [steven1214] Using URL for email and Title as name
steven1214 3941 Jan 10, 2003, 8:46 PM
Thread Re: [steven1214] Using URL for email and Title as name
PerlFlunkie 3966 Jan 11, 2003, 1:25 AM
Thread Re: [PerlFlunkie] Using URL for email and Title as name
fuzzy logic 4002 Jan 11, 2003, 2:50 AM
Thread Re: [fuzzy thoughts] Using URL for email and Title as name
steven1214 4023 Jan 11, 2003, 9:33 AM
Thread Re: [steven1214] Using URL for email and Title as name
steven1214 4064 Jan 11, 2003, 2:56 PM
Post Re: [steven1214] Using URL for email and Title as name
steven1214 3920 Jan 11, 2003, 3:42 PM
Post Re: [steven1214] Using URL for email and Title as name
esm 9750 Jan 4, 2003, 5:35 PM
Post Re: [steven1214] Using URL for email and Title as name
stu2000 9717 Jan 6, 2003, 10:16 AM
Thread Re: [steven1214] Using URL for email and Title as name
steven1214 3941 Jan 11, 2003, 4:52 PM
Thread Re: [steven1214] Using URL for email and Title as name
PerlFlunkie 3922 Jan 12, 2003, 1:19 PM
Thread Re: [PerlFlunkie] Using URL for email and Title as name
steven1214 3930 Jan 12, 2003, 1:37 PM
Post Re: [steven1214] Using URL for email and Title as name
Stealth 3919 Jan 12, 2003, 3:07 PM