Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Link to file using <form> - experiences?
Old 08-19-2007, 08:43 PM Link to file using <form> - experiences?
delighted's Avatar
Super Talker

Posts: 147
Trades: 0
Here's the deal... I need to link to some files, but the "link" must be a button, and I need to have the referer included in the request because of htaccess. I could use <input type="button" value="Download" onClick="javascript:location.href='http://.........., but that will make IE loose the referer value.

The simplest solution I can think of is creating a form with action=http://..../file.zip, and make the button submit the form.

Do anyone have experiences with this? Will it work for all users? Are there anything I should be aware of?

Thanks.
__________________

Please login or register to view this content. Registration is FREE
- upload and share 500 MB files. No registration.
delighted is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-19-2007, 08:47 PM Re: Link to file using <form> - experiences?
JamieLewis's Avatar
Pretty Much a Big Deal...

Latest Blog Post:
Gooie
Posts: 385
Name: Jamie Lewis
Location: UK
Trades: 0
NO NO NO NO NO NO NO NO NO NO NO NO NO NO NO NO NO NO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

That is just wrong, totally wrong in so many senses of the word. Why must it be a button?? Can't you style an anchor tag to look like a button??

Jamie
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
JamieLewis is offline
Reply With Quote
View Public Profile Visit JamieLewis's homepage!
 
Old 08-20-2007, 08:47 PM Re: Link to file using <form> - experiences?
ChipJohns's Avatar
I don't know! Do you?

Posts: 488
Name: Chip Johns
Location: Savannah Georgia
Trades: 0
Really not completely sure of what you are trying to accomplish. Can you try explaining what you need to accomplish with a little more detail. What you feel you need to do and Why you feel you need to do it..!?

With some more info we may be able to come up with something.

Chip
ChipJohns is offline
Reply With Quote
View Public Profile Visit ChipJohns's homepage!
 
Old 08-21-2007, 01:38 PM Re: Link to file using <form> - experiences?
delighted's Avatar
Super Talker

Posts: 147
Trades: 0
Well, I need a button (<input type="button"......) that acts like a link.. It's that simple

Reason I want it is to keep the style of the website consistent.
__________________

Please login or register to view this content. Registration is FREE
- upload and share 500 MB files. No registration.
delighted is offline
Reply With Quote
View Public Profile
 
Old 08-21-2007, 09:54 PM Re: Link to file using <form> - experiences?
ChipJohns's Avatar
I don't know! Do you?

Posts: 488
Name: Chip Johns
Location: Savannah Georgia
Trades: 0
Code:
<form name="myform" method="post" action="yourpage.htm">
<input name="namehere" type="hidden" value="valuhere" />
<input type="submit" name="Submit" value="Submit" />
</form>
Of course you could use a querystring if you need to pass a variable's value
Code:
<a href="mypage.htm?Variable=value">linkText</a>
What technology do you plan on using to process the form? You can use the same technology to process a querystring. I guess I am not quite sure what htaccess settings would prevent querystring access.??

~Chip
ChipJohns is offline
Reply With Quote
View Public Profile Visit ChipJohns's homepage!
 
Reply     « Reply to Link to file using <form> - experiences?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21820 seconds with 12 queries