I have my users enter a URL, when they add a record, if they have a website for users to view. When the record is added and viewed, I do not display the URL itself but I have it linked to their website name that they provided in one of the fields. This works great but if a user wishes to not enter a URL when adding a record the website name is still hyperlinked but points to my dbman.cgi.
What I would like to do is have it hyperlink to website if URL submitted and not hyperlink website if they don't enter a URL. (Just display the webpage title with no hyperlink).
The code below is what I did to hyperlink the website name (In this case Agency). This is in sub_html_record in html.pl.
---------
<td width="84" valign="top" align="center" bgcolor="#00ADBD"><strong><small><font face="Verdana">Agency:</font></small></strong></td><td width="417" bgcolor="#EFEFEF">
<small><font face="Verdana"><A HREF="$rec{'URL'}">$rec{'Agency'}</A></font></small>
</td></tr>
----------
Thank you for the assistance.
What I would like to do is have it hyperlink to website if URL submitted and not hyperlink website if they don't enter a URL. (Just display the webpage title with no hyperlink).
The code below is what I did to hyperlink the website name (In this case Agency). This is in sub_html_record in html.pl.
---------
<td width="84" valign="top" align="center" bgcolor="#00ADBD"><strong><small><font face="Verdana">Agency:</font></small></strong></td><td width="417" bgcolor="#EFEFEF">
<small><font face="Verdana"><A HREF="$rec{'URL'}">$rec{'Agency'}</A></font></small>
</td></tr>
----------
Thank you for the assistance.