Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Form problems
03-13-2005, 04:11 PM #1
- Join Date
- Mar 2005
- Thanked 0 Times in 0 Posts
I've got a bit of a problem with a form.. I'm sure you can do it better in PHP, but meh.. I don't know PHP :P
Basically, it's a form for a page with many downloads. I want people to tick a tickbox and type "I Agree" before they click a button to download. Preferably, I would like the text and ticked box to stay there so they can then proceed to download each file.
The problem I'm having is that I can only specify one form action (which in this case would be the program name) for the form, not for each individual button.
Layout of site:
And the Index links to them.
Link to a page to show you what I mean
Link to the folder
I will be much appreciative of any help
Thanks a lot
On the advice from another forum:
okay so y not use an input type=button instead then onclick call validate() and if true then download the file that is to be downloaded
I changed to and added as so:
Okay.. but how do I make it download the file only if true? Can you provide a sample of code if possible ^_^
EDIT: Currently I have:
<p>download blah: </p> <input type="button" onclick='return Validate()' value="Download blah" class='forminput'>
So yeah.. It's still not working and no-one else is replying there.. Maybe someone here can help? ^__^