HTML - Opening A File From A Html Form
Hey yall..
I have some pdf files on my website. When a user clicks on the download link, I would like to display a web form, after they have filled out the form clicking submit will send the mail form and download the file that they have clicked on. What is the best way to go about this? Thanks for any help on this Similar TutorialsHi, When I open an HTML with my browser to see how it looks, instead of what the code should look like showing showing up, the code itself shows up. Sorry if this is a stupid question, I'm quite new to HTML. I use Dreamweaver CS5. This is the code I used: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html> I cant open my php file...ive downloaded wampserver to support the file but it still doesnt open...wat could b the problem here??? I'm an html novice, and I'm trying to get a file to open in a new window and not replace the current screen. What can I add to this code and try? <html> <head> </head> <body> <script type="text/javascript"> location.replace('http://www.company.com/file.pdf'); </script> </body> </html> Currently, when clicked in a doc library in Sharepoint, the file takes over the screen, which is what I want. However, the user can't use the back button to return to the previous screen. So, how can I change this code so the file pops in a new window but doesn't also take over the original window (since location.replace causes this)? Or is there code I can add which allows the user to use the back button in the ie browser? Thanks! I appreciate any help you can give! Nicole Hi, Newby here - trying to make some link changes to an existing site and it has gone south for me. I have updated some java based links and it has blown up on me. They are trying to open as a file, rather than staying as a link. website address is dub, dub, dub nufinish dot ca. Small site, but trying to update it so that links operate properly. Thanks! Hendy The issue I'm having is that I can't open an html file via a link in an existing web page. My webpage is created in ASP.Net using C# to list out all the .html files in a specific directory. That works fine. Here is the resulting web page Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head><title> </title></head> <body> <form name="form1" method="post" action="ProductsForGraphs.aspx" id="form1"> <div> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTExNzQ0NTIzMDlkZA5WbO/3euQo7nU92sfVjUhzzVQK" /> </div> <div> <table style="width:100%;"> <tr> <td> <a href='c:\FO\graphs\GE_Condor.html' target='_blank'>GE_Condor.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\GE_DblFly.html' target='_blank'>GE_DblFly.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\GE_Fly.html' target='_blank'>GE_Fly.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\I_Condor.html' target='_blank'>I_Condor.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\I_DblFly.html' target='_blank'>I_DblFly.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\I_Fly.html' target='_blank'>I_Fly.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\L_Condor.html' target='_blank'>L_Condor.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\L_DblFly.html' target='_blank'>L_DblFly.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\L_Fly.html' target='_blank'>L_Fly.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\ZQ_Condor.html' target='_blank'>ZQ_Condor.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\ZQ_Fly.html' target='_blank'>ZQ_Fly.html</a> </td> </tr> </table> </div> </form> </body> </html> Now when I click on the GE_Condor.html link, or any other link for that matter. The file doesn't open. Here is the code for the GE_Condor.html file. Code: <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html xmlns='http://www.w3.org/1999/xhtml' > <head> <title></title> </head> <body> <p> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE0U0Z0H1M1CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE0Z0H1M1U1CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE1H1M1U1Z1CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE1M1U1Z1H2CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE1U1Z1H2M2CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE1Z1H2M2U2CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE2H2M2U2Z2CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE2M2U2Z2H3CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE2U2Z2H3M3CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE2Z2H3M3U3CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE3H3M3U3Z3CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE3M3U3Z3H4CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE3U3Z3H4M4CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE3Z3H4M4U4CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE4H4M4U4Z4CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE4M4U4Z4H5CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE4U4Z4H5M5CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE4Z4H5M5U5CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE5H5M5U5Z5CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE5M5U5Z5H6CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE5U5Z5H6M6CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE5Z5H6M6U6CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE6H6M6U6Z6CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE6M6U6Z6H7CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE6U6Z6H7M7CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE6Z6H7M7U7CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE7H7M7U7Z7CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE7M7U7Z7H8CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE7U7Z7H8M8CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE7Z7H8M8U8CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE8H8M8U8Z8CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE8M8U8Z8H9CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE8U8Z8H9M9CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE8Z8H9M9U9CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE9H9M9U9Z9CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE9M9U9Z9H0CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE9U9Z9H0M0CNDR.png' /> </p> </body> </html> If I open the file directly in IE (typing in the path) or double-clicking on the file from windows explorer, it opens without any problems. Any ideas? Thanks Bob Hi guys. I'm hoping someone can help me out. I'm by no means a web developer, but owning a business I tend to learn a little of everything - probably just enough to be dangerous. I'm trying to post a page that will have survey questions for all the brides that come through our boutique. The form has to be able to handle the normal form stuff - text fields, check boxes, etc. - but it also has to upload a user selected file. The idea is to get a bunch of feedback as well as a shot of the bride in her wedding gown. So, we'll have testimonials and accompanying pics. (I'm warning about copyright issues on the form). A prize will be randomly awarded to one of the survey participants at the end of the whole thing... once the promo is over. So, I've got the form pretty much done. But, I need a script that can handle the results and stores the images in such a way that I know what survey it goes with... make sense? Help me out here, I'm stuck. If it helps, I'm using IXwebhosting's linux platform. Thanks everybody! Hey everyone i'm new here..great forum.. I really need your help, i've literally been trying all day to save the form information entered on my site to a text file of xml or any type of document but i have not gotten through at all.. I'm creating a site that provide a service to the users, i would like them to leave information so that i can contact them, such as name number location.. I created the forms but cant get the text they type into the forum to save..after doing some reading, i learn that i need to use a script like php to write the form info to the text file.. Can someone please please please help me..im so tried..lol.. Any help would be greatly appreciated.. Hi to everyone. I am very new to programming. I am writing an html code for a simple program here at our office. Part of the program is to open an html file that is located on another computer. The computer's IP address is 192.168.2.110 (on the local network) and is named accounting8. If I paste any of the following in the address bar of Mozilla Firefox, initial.html is show correctly: http://accounting8/genghis_khan/initial.html http://192.168.2.110/genghis_khan/initial.html However, when I use either of the two within my html code, nothing comes out. Here is the sample code: <html> <head> <title>Module</title> </head> <frameset cols="190,*" <frame src="http://accounting8/genghis_khan/initial.html" name="toc"> <frame src="http://www.yahoo.com" name="toc"> </frameset> </html> I hope you guys can help me out. Advance thank you. RJ how can i make an html code so i make Y! icon on web when some1 clicks it a chat window appears Hi, I have one form for searching with 2 buttons, 'Search Site' and 'Search Web'. If possible I'd like the 'Search Site' to just stay in the same window when submitted (with the information from the search text field) and the same with the 'Search Web' button except I'd like it to open in a new window. Here's what I have: Code: <table cellspacing="3" cellpadding="0" align="center"> <tr> <form name="search" action="/search.php" onSubmit="return checkform()"> <td> <b class="f14"><a href="/search/" class="nol">Search</a>:</b> </td> <td> <input type="text" name="search" id="search" value="<? echo $search ?>" /> </td> <td> <input type="submit" name="Submit" id="Submit" value="Search Site" /> </td> <td> <input type="submit" name="Submit" id="Submit" value="Search Web" /> </td> </form> </tr> </table> Any ideas? Let me set up what my site looks like first, then I'll delve into the question. My site has frames, top frame, left frame, and a main frame. The left frame contains numerous thumbnail images that I want the user to click on and get a larger version of said image inside the main frame. The problem I'm having is I have to create a separate html page for each (larger)image (and it has become incredibly tedious), instead of just having a main.html with some sort of way of opening multiple (not more then one image at a time, but have an image replace the previous one when a new thumbnail is clicked) images inside of it. How can I do this? Would I use a div or what? I'm just learning so any help would be great. If I haven't explained well enough, I'll be happy to restate the question if you wish. Please help ! ) Is there a way to put a custom graphic for the browse button in the file upload field, similar to how you can use a custom graphic for the submit button? hi everybody, I am working in a html. I defined a functiion in a html file.(first.html) I want to call that function in another html file.(second.html) How can i call that function in second.html file? give some sample code Thanks in advance.... Hi, I'm trying to include one HTML file in another. I tried iframe and was displeased with the results, I want the size of the frame to change dynamically and not just scroll. Fair warning, my knowledge of JavaScript is non-existent >_> . Basically, I have a document written in HTML (please don't suggest a wholesale re-write, that's simply not practical) and the idea is to have one file where it makes sense to include it several times. One thing to mention, this document is not meant to be shown on a web-server, but in a browser while you're reading it off your hard-drive. Here's what I have so far. main.shtml Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>test</title> </head> <body> <center> <h1> This is only a test! </h1> </center> <p> Still testing!!!!! </p> <!-- #include file="included.html" --> <p> Even more testing!!!!! </p> </body> </html> included.html Code: <!--<html> <head> <title> asdfasdfasdfasd </title> </head> <body>--> <p> <h4> foobar </h4> <br> <br> <br> <br> <h4> boofar </h4> </p> <!--</body> </html>--> Not sure what I'm doing wrong, help appreciated! Hi ,I am new in html.Hope you can guide me step-by-step on this. I want to import my .txt file into the html form and the html form can add new item then to be add in to that particular .txt file too as well. can this be done? For example: (fruits.txt) 1.apple 2.banana 3.orange Can this fruit.txt be impoted to fruit.html page and show it at fruit.html page, at the same time, the fruit html page allow to add in new fruit, and once user add in new fruit, the fruit.txt file will be updated as well. Thanks for your guidiance and help. :-) I have a website where I want to make a drop down menu that will bring you to different pages. It is a very basic, sort of old-fashioned website that relies entirely on html. What I'm trying to do is make a drop-down menu that will be used as navigation for a section of a website and I want to have it in each internally linked page in that section, but I'm going to be adding more pages to it over time so I want to be able to put the drop-down menu code in a separate text file and then substitute it into the pages that I make that the options in the menu link to and then just edit the code in the text file when I add another page so that I don't have to go back and edit the code every single individual page whenever I add a new one among them. Basically all I'm asking is how I can put html code in a text file and then substitute that code into an html page by referring to the file. Thanks in advance for any help. script completed, thx Hi guys I want to add some php files into my frontpage html files, please let me know how to do this. I tried many things but fail. Please guide me. Thank you GCS |