I want to make some of My bands Mp3s available o my website. But I dont want people downloadig them with out knowing who they are. And I would also like to track how many copies there are to the best of my ability. What I want is either a redirection after an e-mail address is entered. Or, I would like a pop-up screen with the Download link to appear. Thanks
Download a copy of FormMail from Matt's Script Archive at http://www.worldwidemart.com/scripts/ and set it up so that they have to fill in their email address in a mail in form that goes to you and then redirect them to a 'hidden' URL that they will use to download the MP3's
I have no idea how to use scripts so that last idea did not work for me. I have typed out some HTML code for the form. The only problem is I cant get the submit button to send me the e-mail. After i get that figured out all i need to do is Get the submit button to redirect to another website. Which I know how to do with this HTML code. If anyone knows why the submit button is not woking please tell me how to fix it. Thank You
<h2>Thank you for your interest in Krap please Fill out this form. After which you will
be able to download the Mp3's.</h2>
Your full name (Last name first): <BR><input name="name" size=40><br>
Location:<BR><input name="where from" size=40><br>
Age:<BR><input name="Age" size=40><br>
Homepage?<BR><input name="website" size=40><br>
Your email address: (e.g.: <em>you@aol.com</em> ) <input name="from" size=30><p>
Have you seen Krap? <BR><input type="checkbox" name="yes"
value="selected" checked> Yes <input type="checkbox" name="no"
value="selected"> No
<BR>
What is your Gender?<input type="checkbox" name="Male"
value="selected" checked> Male <input type="checkbox" name="Female"
value="selected"> Female
<br>
Comments or suggestions?<br> <textarea name="body" rows=10 cols=60></textarea><p>
That should make your submit button work. But will the email still be sent to you even though you're not using a script? I'm not sure. I'm not used to using that method. I always use a script such as FormMail.pl.
Go to the Geocities homepage. At the bottom is a list to Homepage add-ons. In the add-ons they list a form processor along with instructions on how to set it up. It should allow you to set up a "thank you page" if it does just put the address for your download page in as your thank you page.
If if does not have a "thank You page", add the following code into the HEAD section of your web page:
~~~~~~~~~~~~~ CUT HERE ~~~~~~~~~~~~
<script>
<!-- Hide Script
function redirectDownload(){
document.location(0) = "http://www.geocities.com/Broadway/Stage/4869"
}
//-->
</script>
~~~~~~~~~~~~~ END CUT ~~~~~~~~~~~~~
and change your submit button to look like:
<input type="submit" value="Submit" onClick="redirectDownload();">
------------------
Wayne Luke
Internet Media Provider
Ok... I got the form to send the e-mail. But now it just opens up a page that say that the email was sent and what the e-mail said. But I cant get it to go to a certain page.
Here is the code I am now using.:
<h2>Thank you for your interest in Krap please Fill out this form. After which you will
be able to download the Mp3's.</h2>
Your full name (Last name first): <BR><input name="name" size=40><br>
Location:<BR><input name="where from" size=40><br>
Age:<BR><input name="Age" size=40><br>
Homepage?<BR><input name="website" size=40><br>
Your email address: (e.g.: <em>you@aol.com</em> ) <input name="from" size=30><p>
Have you seen Krap? <BR><input type="checkbox" name="yes"
value="selected" checked> Yes <input type="checkbox" name="no"
value="selected"> No
<BR>
What is your Gender?<input type="checkbox" name="Male"
value="selected" checked> Male <input type="checkbox" name="Female"
value="selected"> Female
<br>
Comments or suggestions?<br> <textarea name="body" rows=10 cols=60></textarea><p>
You're mixing JAVASCRIPT in with your HTML for a Perl (most likely?) script or CGI function. Try to add another hidden input like this:
input type="hidden" name="redirect" value="the page you want them to go to"
You may want to check the help section in Geocities on how to use the form. They should have something in there about it.
HAH, I got to him first, Wayne! Now I just hope it works, or I'll look like a total boob! I'm aspiring to be like you, Wayne. I've decided that you are the most knowledgable user of these forums (that isn't associated w/WR), so I seek to emulate you.
Mike
------------------ Street Bikers United protecting the rights of motorcyclists worldwide.
[URL=http://www.cosmicairbrush.com/]Cosmic Custom Airbrush - Hawaii's premier airbrush studio.
Uncle Dub... just because you don't know how to use scripts, doesn't mean that you can't figure it out. It is easy to do what you are asking.
First, does you current host have a form mailer script already setup for you? If you have no idea, ask, many do. If not...
Second, will your host allow you to install scripts? If you don't know, ask. Depending on who you are hosted by, you may or may not have this ability.
Third, if you have made it this far, do as someone else said an get that script. It takes approx. 3 minutes to set up and has complete directions.
You will need to know the path to perl and the path to send mail. Ask your host if you can't find this info on your host's site.
Path to perl goes at the top. Follow the instructions provided for the rest. You will be surprised at how easy it is to install this type of script, and everything will work like you want it to!
I think I figured it out. It now sends me the e-mail and it goes to the page I want it to. But i do have one more question about forms.
I want to use this Code but I want the selected items in the pulldown menu to send the person to another website instead of Sending me an e-mail.If there is a question mark I dont know what to put there.
You can find cut and paste "Jump Box" scripts at all javascript sites. You can look at www.jsworld.com or http://javascript.internet.com or many others and find it. Then if you follow their instructions you can put it on your site with no trouble.
Is this still related to the original problem or a new one???
------------------
Wayne Luke
Internet Media Provider
Bookmarks