Newsgroup: it.comp.www.homepages
Titolo: How do you let people FTP from HREF links on Homepages??????

How do I write into my HTML code a HREF link to a program available to FTP:
I've tried things like:
<A HREF=
ftp://thenpage.com/thenaccount/thenhomepage/thenprogram/
 A>
which didn't work so I tried
<A HREF=
ftp.page.com/thenaccount/thenhomepage/thenprogram/
 A>
Which didn't work EITHER. Please someone help me


Dave,
Try:
<A
HREF="http:
www.thenpage.com/thenaccount/thenhomepage/thenprogram/thenfilename.xxx
">Click
to download</A>
Where xxx is an filetype unrecognised by the browser, for example exe or
zip.
-- 
Regards
Martin Webb
JavaScript "No Content" Web Site:
http://www.btinternet.com/~martin.webb/
JavaScript articles, tutorials, example source code, FAQ

</a>
It's *good practice* to (always) inclose attribute values in double-
quotes " ..... ".
-----------
Tony Morgan
ATOMOR WEB
Web By Design

 Which didn't work EITHER. Please someone help me
--
[remove all *'s to reply]
http://142.103.100.20/users/students/mather/

 quotes " ..... ".
Especially as that particular attribute value is invalid without the quotes.
--Paul

Especially as that particular attribute value is invalid without the quotes.
Yes Paul... I was also (gently) making the point that people starting
HTML will get into a lot less trouble if they *always* use double-quotes
around values.


 around values.
It's never wrong to quote attribute values, and that's good advice.  But
it's still worth emphasising when a particular attribute value must be
quoted to be valid because some people may find that their browser copes
and think therefore that it's OK.
--Paul

Except integers.
--=20
() @n|)re\/\/ /\/\org@|\|  -  Andrew...@BTInternet.com - =
http://msfp.teklink.com/Z
 - UIN:1448082
() The ZILTRO Zone, 6-in-one search page and lots more!
Tony Morgan wrote in message ...


 Except integers.
*Including* integers.  Numeric attributes may be quoted.  It is not wrong to
do so.
In fact it's especially important to quote integers because in many cases
Netscape (who really do not understand SGML) have created attributes that
can take both plain numbers and percentages.  If an attribute can only ever
be a plain number then you don't have to quote it (but you may).  If an
attribute can only ever be a percentage (containing a percent sign) you do
have to quote it.  If it can be both then you *must* quote the value whether
it's a number or a percentage - the semantics of SGML do not allow you to
write a DTD that lets you to do otherwise.  To cope with the percentage the
attribute value must be specified as CDATA and CDATA must always be quoted.
Not that it's possible to write a DTD for some of the things Netscape
allows, and Netscape didn't bother to do so.  At least Microsoft wrote a DTD
for their browser and seem to have some clue about SGML.  Of course,
Microsoft's own web pages fail to validate against Microsoft's DTD, but
you'd expect that - Microsoft never do anything right.  In fact the DTD
itself has a bug and the validator complains about it until you fix it.
--Paul

Click here for download<A>
-- 
Tony Morgan

I don't use netscape, the toolbar anoys me.
And it reloads the page rhen you resize the window.
etc.
Here are my rules:
<TAG TEXT="Hi there!" INT=657 PERCENTAGE="50%" IP_ADDRESS="127.0.0.1" URL="
http://www.nakidgirls.com
">
I suppose I don't put ints in ""s because of using many other programming languages.
ps. What's a DTD?
-- 
() @n|)re\/\/ /\/\org@|\|  -  Andrew...@BTInternet.com - 
http://msfp.teklink.com/Z
 - UIN:1448082
() The ZILTRO Zone, 6-in-one search page and lots more!
Paul L. Allen wrote in message ...


Click here for download<A>
Whoops! Forgot the closing quotes !!!
<A HREF="
http://www.myhostname.demon.co.uk
">Click ..... etc
-- 
Tony Morgan


Yes... and the double-quotes (which I've corrected)...
Dyslexia Reigns Supreme!!!
-- 
Tony Morgan

 writes:

I still think it's bad design to make your entire site a downloadable
zip file.  Not that it would work, anyway, because when you downloaded
www.myhostname.demon.co.uk
 the server would grab index.html (which you'd
made a zipfile), serve it up as text/plain and NS and IE would corrupt
it.  I'd have gone for 
www.myhostname.demon.co.uk/whatever.zip
, but
that's just me being pedantic, I suppose.
--Paul

Click here to
download the xxx file</a>
Oddly enough, I do frequently download a complete site as a "proof copy"
to a customer using a self-extracting zip, so that he can check the site
locally on his hard disk before approval, when I ftp the whole thing up
to the customer's site. AAPOI I always use relative links, so the whole
site is transportable. But all this is another subject...
-- 
Tony Morgan

 download the xxx file</a>
That's better...
--Paul