code help

D

dj001

Well, I finally found a simple captcha program (icaptcha.com), to protect my
download page from more spam bot attacks. I switched the default "thank you"
page, safe.php, as follows:

<form action="mus.mp3" method="post" name="validate">

When the correct text is entered, the mp3 URL shows up. However, instead of
the "Open or Save" window, it launches a Quicktime icon in the center of the
screen, with a big question mark in it. (When I go to the mp3 URL directly,
it plays in Quicktime, though I've selected Winamp in File Types).

How do I change the form action code so the successful result is a standard
"Open or Save" window for the .mp3?
 
H

Hans Le Roy

Hi,

You have no way of controlling that - it depends on the browser settings of
the client.

Kind regards

Hans
 
D

dj001

That is not my point. I want to still get the "Open or Save" window, which I
got when I right-clicked the link (before installing the captcha). I don't
want the file to start playing immediately. Site visitors should still have
the option to save the file to a directory. It's not about Winamp vs.
Quicktime, it's about the "Open or Save" option. Anyway, all I get now after
captcha confirmation is the Quicktime logo with a question mark.
 
S

Stefan B Rusynko

Change you form action to a page w/ the media instead of the MP3 file
- you now have the form action as mus.mp3

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| That is not my point. I want to still get the "Open or Save" window, which I
| got when I right-clicked the link (before installing the captcha). I don't
| want the file to start playing immediately. Site visitors should still have
| the option to save the file to a directory. It's not about Winamp vs.
| Quicktime, it's about the "Open or Save" option. Anyway, all I get now after
| captcha confirmation is the Quicktime logo with a question mark.
|
| "Hans Le Roy" wrote:
|
| > Hi,
| >
| > You have no way of controlling that - it depends on the browser settings of
| > the client.
| >
| > Kind regards
| >
| > Hans
| >
| > | > > Well, I finally found a simple captcha program (icaptcha.com), to protect
| > > my
| > > download page from more spam bot attacks. I switched the default "thank
| > > you"
| > > page, safe.php, as follows:
| > >
| > > <form action="mus.mp3" method="post" name="validate">
| > >
| > > When the correct text is entered, the mp3 URL shows up. However, instead
| > > of
| > > the "Open or Save" window, it launches a Quicktime icon in the center of
| > > the
| > > screen, with a big question mark in it. (When I go to the mp3 URL
| > > directly,
| > > it plays in Quicktime, though I've selected Winamp in File Types).
| > >
| > > How do I change the form action code so the successful result is a
| > > standard
| > > "Open or Save" window for the .mp3?
| >
| >
 
D

dj001

the problem with that is the captcha is to protect me from spam bot attacks.
Revealing the page makes the attacks possible again.
 
T

Thomas A. Rowe

Have you contacted the author of the script you are using?

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
http://www.Ecom-Data.com
==============================================
 
T

Thomas A. Rowe

In order to force the download dialog, the file extension must be .zip or .exe

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
http://www.Ecom-Data.com
==============================================
 
T

Thomas A. Rowe

You don't.

You have to use a zip application to convert the mp3 file into a .zip or .exe if the zip is to be
self extracting when downloaded and clicked on.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
http://www.Ecom-Data.com
==============================================
 
D

dj001

If they want it to play, it will be a two-step operation, then? They won't
just be able to click Open, and Winamp or whatever will start playing it?
 
T

Thomas A. Rowe

Correct.

If the browser is already configure to recognize the file extension and it is associated with a app
already installed on the user's PC, then the file will download and play without prompting the user
to save it, etc.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
http://www.Ecom-Data.com
==============================================
 
D

dj001

Care to suggest some freeware that makes self-executing zipped files, without
bugging me to buy it?
 
T

Thomas A. Rowe

I only know of WinZip. Just create a standard zip file from within Windows XP, and users of Windows
XP will have no problem opening them or just let the deal with the file like they do others where it
open in or via the browser, etc.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
http://www.Ecom-Data.com
==============================================
 
A

Andrew Murray

Windows XP/Vista etc has a built-in "zip" tool. Just right click the file
and choose Send TO > Compressed folder.
 
T

Thomas A. Rowe

However, at least with Windows XP, you can not create self-extracting zip files (.exe).

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
http://www.Ecom-Data.com
==============================================
 
D

dj001

When I navigate to the uploaded .exe file, it does send up a "Run or Save"
dialog. However, when I click "Run," it just extracts the .mp3 to the
default folder. What I need it to do (for all users) is just play the .mp3
automatically (or, perhaps throw up another "Run or Save" dialog, for the
extracted .mp3, this time). I am using WinZip Self-Extractor, and I think I
need to include something in the command option (which I left blank) that
causes the .mp3 to play automatically.
 
T

Thomas A. Rowe

After the user extract the file, they then have to double click for it to play. If there is a
command to do what you want, then you will have to contact the author of WinZip.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
http://www.Ecom-Data.com
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top