|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
| View Poll Results: how can i use the web address in my asp page | |||
| no | | 0 | 0% |
| no | | 0 | 0% |
| no | | 0 | 0% |
| no | | 0 | 0% |
| Voters: 0. You may not vote on this poll | |||
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
i have to upload c:\test.jpg every time. But to select this file i am using <input type=file name=filename> and on the another page i am uploing the file that is coming from filename.
But as i have to same file ( c:\test.jpg ) everytime i inserted value field <input type=file name=filename value=c:\test.jpg> but this value tag is not picking up the file. Could anyone one please tell me how to pick the file with value field. I need user just have to press UPLOAD button. because evrytime i have to upload the same file. Chias |
|
#2
|
|||
|
|||
|
Hai,
Directly we cannot assign the value to the file attribute. But we can do this indirectly. see the following code. It uses text field & button in order achive requirement the one u have looking... <html> <head></head> <body> <form name="test_form" method="post" action="test.jsp"> <input type=file name=browse style="display: none;"> <input type=text name=file value=c:/test.jpg> <input type=button style="font-style:veranda; font-size:12px; font-weight:bold;text-transform:lowercase;color:white;background-color:#A2C382;height:22px;border-style:ridge;text-align:center;" onClick="browse.click();file.value=browse.value;" value="Select a File..."> <br><br> <!-- must be clicked twice for the form to submit! --> <input type=submit value="Submit The Form Now!" style="font-style:veranda; font-size:12px;"> </form> </body> </html> cool... |
|
#3
|
||||
|
||||
|
please avoid posting obviously wrong answers, especially in old threads. thanks.
|
| Viewing: ASP Free Forums > Other > ASP Free Lounge > <input type=file value="C:\test.jpg" name=filename> |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|