Log in

View Full Version : is it possible



Mehok
11-13-2006, 07:02 PM
Is it possible to use the submit button as a download button for an application or a .pdf file

boxxertrumps
11-13-2006, 07:06 PM
maybe if you use a href attribute or wrap the button in an anchor.
that is, if the href attribute/a tag is valid in forms.

what have you tried so far?

Twey
11-13-2006, 07:26 PM
Certainly. A submit button can be used just like a link (although this can be semantically inadvisable):
<form action="file.tar.bz2">
<input type="submit" value="Download">
</form>

Mehok
11-13-2006, 07:26 PM
nothing so far i am building the page and the button looks cool when i apply a css tag to it so i was wondering if i could use the button for a download thini

Mehok
11-13-2006, 07:36 PM
Certainly. A submit button can be used just like a link (although this can be semantically inadvisable):
<form action="file.tar.bz2">
<input type="submit" value="Download">
</form>

thanks for the code I owe you big time