Click to See Complete Forum and Search --> : Help ! - Text Edit on Webpage


=VIP=
07-23-2007, 07:55 AM
Hello, Can you help me... Im making a website and i want find a way to edit text on online not using Dreamweaver. The texts (words) display on homepage and when i want change the text so i login in to change the texts which display on homepage.

I don't need the codes for login. All i need code for edit text. I got some ideas here
<html>
<body>
<p>This is the text in the text file:</p>
<%
Set fs=Server.CreateObject("Scripting.FileSystemObject")

Set f=fs.OpenTextFile(Server.MapPath("testread.txt"), 1)
Response.Write(f.ReadAll)
f.Close

Set f=Nothing
Set fs=Nothing
%>
</body>
</html>


So that is .txt file so can i edit the text in my login and change the text then save it... it display the text on homepage...

I hope you understand what i mean. Hope to hear from you
Thanks,

nbcrockett
07-23-2007, 08:14 AM
If you are wanting to do it via a web browser you'll need another page that's a form. That form can be prepopulate by your existing data so all you have to do is update it or it can be blank if the data changes completely everytime. That page will submit to another page that does nothing but take the data from the form and writes it to the text file and then redirects you to where ever you want it to.

LeeU
07-23-2007, 10:10 AM
Please don't cross post. The other thread has been removed.

=VIP=
07-23-2007, 12:08 PM
If you are wanting to do it via a web browser you'll need another page that's a form. That form can be prepopulate by your existing data so all you have to do is update it or it can be blank if the data changes completely everytime. That page will submit to another page that does nothing but take the data from the form and writes it to the text file and then redirects you to where ever you want it to.

Thank you for reply... I don't 100% understand what you saying, Is any examples or you know the codes what can i use. It not have be .txt file... can be other format Excel, Word or whatever long is what i ask for.

Thanks again, Hope you be advice