HTML - Edit .shtml File With A Form? Even Possible?
I'm currently helping someone maintain a pretty simple website, mainly text. And they would like to update their site relatively often, but I don't have the time and they don't have the knowledge of updating the page. So I was wondering if I could just embed the text into the html file using a .shtml file (ex <!--#include file="maintext.shtml" -->) and create a form on a seperate, password protected page that would have a simple textarea and submit button that would allow them to edit the text in the .shtml file and press submit, therefore editing the text in the .shtml file? Is this possible?
Similar TutorialsHello, I know a little bit about creating websites and how to use the programs that create them. And knowing this, is why I don't understand what I'm doing wrong. A friend of mine, gave me a website template with all its files. If I open firefox or any browser and goto open file, then select the .html file, it will load it just fine and it looks great. In the folder of the template are the following files: xzy1.fla xzy1.fla.jsfl xzy1.swf xzy1.html xzy1-b.jpg xzy1-h.jpg And that's it, nothing else is in the folder. As for how I use to create or edit other website templates, I would goto the folder of the template, and in it would be the following files: abc2.fla abc2.swf abc2_about.html abc2_index.html abc2_about.psd abc2_index.psd And there is also a 'image' folder with a lot of images. Normally to edit this template I would use the .psd file and either Adobe Photoshop and/or ImageReady to make my adjustments. Can someone please take the time to explain what other files I could use to make the adjustments. Because as I explained, the only way I thought you could edit a template was to use the .psd file. Thanks again for your time, Jason S Hello, I just started working at a company and they have a website that was partially completed by someone else and have hired me to complete and make changes to it. It seems that most of the website was created in Wordpress, but some of it seems to be done by hand-coding. The website is at http://www.executivetravellink.com/ I was able to get the company's FTP information which shows me all of the files that are on the site and I can easily transfer over locally to work in say Dreamweaver for example. They want me to make some changes to the navigation bar up top where it has links to the Hotels, Flights, Cruises, etc. From looking at the code in the index.php file, which leads to other files, I wasn't able to figure out which file to open in order to make those changes. I'm not sure if this is possible, but from looking at the source code, would someone be able to know the answer to that? Any information that someone could give me would be certainly much appreciated. Thank You! hey guys, I don't know if this is the right place to post. my company has existing websites, and I come to fix the errors.(I don't know the status about those website on Cpanel) After I did some change on File Manager, but the web site stay the same no matter how I do the code ( even delete all codes).... anyone know why that happen? Do I need to refresh or something? Any things I need to check on Cpanel for the settings??? thanks guys!! Ok still super new at this HTML thing, but I am going to be using Filezilla to access my friends index.html file for a little eding of the text. My question is can I open the file, edit what I need and save it all within filezilla? Or do I need to drag the index.html file to my desktop, edit, save and the drag it back to filezilla? I have a script for a navigation bar that I want to include on all my HTML pages using some kind of include tag so that I don't have to paste the script into each page every time I edit it. The only way I can get it to work is if I use either PHP or SSI include tags but this requires me to change all my page extensions from .html to .php or .shtm. So I can get it to work, but the thing is, I don't want to have to change all my extensions. I like my pages in .html and it would be a pain change them all. Is there a way to do what I am trying to do without having to change all my extensions? Some kind of HTML equivalent for include tags? Or some code that forces my HTML documents to read PHP or SSI tags? There's got to be something right? I'm converting my webpages from a .html file to a .shtml file because I'm using SSI in the page. Now, can I just change the file type or do I have to do other stuff to the file? Thanks Hi, geetings to all. I came across this interesting feature on the Microsoft website and I was wondering how the navigation bars work? (the one with highlights etc...) I suspect it's done using javascript... Can anyone link/provide me to/with any code, tutorial or explanation as to how this is done? Thanks. =) As for shtml, I remember doing it once but I forgot how it's done. My question is, does shtml operate on frames? Is there a good tutorial out there somewhere? (I'm sure there is, I'll be searching meanwhile too). Thanks for your help. DarkArcher Hi-- I was hoping someone could tell me how to edit this contact form so that it does not redirect to another page (the php page)? I'd like it to just simply send the message without leaving the page. The trick here is that I am using a javascript link to submit the form, NOT a button... Any help would be most appreciated! HTML PAGE: <body> <script type="text/javascript"> function submitform() { document.forms["form"].submit(); } </script> <form id= "form" method="POST" name="form" action="mailer.php"> Name: <input type="text" name="name" size="19"><br> <br> E-Mail: <input type="text" name="email" size="19"><br> <br> Message:<br> <textarea rows="9" name="message" cols="30"></textarea><br> <br> <a href="javascript: submitform()" >Searchthis</a> </form> </body> PHP FILE: <?php $to = "info@abcsofufos.com"; $subject = "ABCs of UFOs"; $name_field = $_POST['name']; $email_field = $_POST['email']; $message = $_POST['message']; $body = "From: $name_field\n E-Mail: $email_field\n Message:\n $message"; echo "Data has been submitted to $to!"; mail($to, $subject, $body); ?> Hi, what i want do do is simple, i just don't know how to do that. I want to have an html form on my website which will save the result of the form to different files (txt or whatever) to my linux server each time a form is supplied. What would also be nice is to be able to put some of the form input in the file name. For example, a form that has the inputs name, age, email would save the result to a txt file named like this ''name - age.txt'' Thanks for your help, I cannot get my form to write to my asp file for the life of me. My website is rollingdice.byethost32.com you'll notice a login form with two simple txt fields. I have the action set to the name of the asp file ("logins.asp"). The asp file looks like this Code: <html> <body> <% 'declarations Dim username, password 'initiate declarations username=Request.Form("username") password=Request.Form("password") 'print input Response.Write("Username: " & Request.Form("username") & "<br />") Response.Write("Password: " & Request.Form("password") & "<br />") %> </body> </html> If someone could please tell me what i'm doing wrong it would be much appreciated How can you specify the type of document that can be attached/sent through a form? This seems to be the least I could do to ensure that what is being sent is the information being requested and not a corrupt or virus ridden jpeg or pdf. If I wanted to allow microsoft word documents how could I do this? While an alternative may exist I haven't found the free one. This form is sent directly to a person who posted an add asking for information. I am unable to scan the attachment prior to it being sent. Alternatives? 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 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! Hi, I've encountered this problem, and been struggling for few hours. Thing is, I have a form with enctype="multipart/form-data" and 2 inputs with type "file" in it with names RequestForm[doc1] and RequestForm[doc2]. When I submit the form, only the first one of the fields is sent into $_POST. If i comment out the 1st field, then only the second is sent. This thing is just killing me! Could someone help? What might be wrong? And yes, I do need 2 inputs, not 1 multifile input. Looking for a form / script to place on an HTML page that will accept not only a number of fields (name, email, etc) but a file (MS Word, TXT, or PDF) as well. Contents can either be stored in a SQL database, saved on server, or emailed to an account. Any help is appreciated. 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 So all I want to do is to make a form where I can upload files to my webserver. I'd just like to stick to plain old HTML if possible. I made the form and the page but the problem is that when I upload a file the form gets submitted properly and it goes to another web page that is set as the action on the form however the file is nowhere to be seen! I thought that the file would just automatically appear in the same directory that the html file where the submitting form is. So does anyone know where my file is? Thanks! Any idea why the "theuploadedfile" input is not displayed when the program comes in after the submit ? PHP Code: <?php print 'Post=<pre>'; print_r($_POST);print '</pre>'; // PROBLEM $_POST['theuploadedfile'] IS NOT DISPLAYED (the text one is) ?> <form enctype="multipart/form-data" action="<?php print $_SERVER['PHP_SELF']; ?>" method="post"> <br>File to upload <input name="status" type="hidden" value="submitted"> <br>A<input name="thetexttype" type="text" size="100"> <br>B<input name="theuploadedfile" type="file" size="100" > <br><input name="submit" type="submit"> </form> |