Previous Message
Next Message

Importing files into a css web site

Sent by tedd on 2 January 2004 15:03


>I do not know if this question is for this list. I am produceing a CSS
>web site for a client and was wondering how this person could update
>information on the web site I am building. I have built one web site
>that I take text files, add the tags and then upload the saved file to
>the web host. The client uses Word from MS Office 2000 Professional
>alot. How could this person just load a file directly to the web host
>and have the CSS formating? Maybe I have not read enough yet?
>
>Angus MacKinnon Crest Saying

Angus:

If I understand you correctly, you just want to have the client edit 
text on his web site, correct?

If so, I've done this by making a cgi form that generates a text file 
which is then loaded into a html file as needed. It's pretty 
straightforward.

In fact, I have  several sites set up in that way.  They access a cgi 
form I wrote wherein they pick the page they want to edit and the 
corresponding text file is loaded into the cgi form. They just edit 
and save.

Then the corresponding html file when loaded by a browser will also 
load the text file via a --

<!--#include virtual="/pages/page1.txt" -->

call from within the html.

Now, with css, I would imagine that you would have a specific area 
for the text to load, such as:

<div id = "firstline">
<!--#include virtual="/pages/page1.txt" -->
</div>

and that it's.

The tricky part will be to write the cgi to allow the user to select 
and edit text.

Now, I have set up an example for you:

The site is:

http://www.webbytedd.com/index2.shtml

Notice down to "Results of users Input Below:" -- line 1, 2, 3.

This is the data you will be able to change.

Now go to:

http://www.webbytedd.com/cgi-bin/edit.cgi?action=add

The password is "aa" <-- be kind, this is a security issue for me.

Pick the line you want to edit and then post. Then review the front 
page and you will find the text changed.

I can provide code it you want. But considering that this is not 
technically a css issue, please contact me privately.

tedd

-- 
--------------------------------------------------------------------------------
http://sperling.com/
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: