Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Editing HTML Page
July 18, 2008, 6:20 pm
rate this thread
I have a problem which I thought of discussing with you lot so as to
get your views on the solution.
In my intranet there is an section where we have our customer details.
This is fairly straight as all the details are saved in customer.log
file on the unix directory.
There is one index.cgi file which has certain columns which allow us
to add customer and search by several fields including customer name,
Now the PROBLEM: We do not have any cgi script to edit these details.
As told before the details are stored in
customer.log file and I suppose I would have to create a link in
index.cgi to edit all the details displayed .
Would somebody be able to let me know how to change these details ,
creating a new link in index.cgi.
Sample fields in the index.cgi is as below.
<tr><td>Almstrong</td><td>Cust Name</td><td>Shit Bing</td><td>Liabel
<tr><td>Almstrong</td><td>Cust Name</td><td>Dove Solo</td><td>Liabel
Any help would be greatly appreciated.
Re: Editing HTML Page
Many people don't know or remember the details you may have posted.
Parse the file. in your CGI.
Display the data in an HTML form.
When it's submitted, the CGI will parse the input and rewrite the file.
( Note the permissions on the file need to be writable by the owner
of the process running the Web server. )
Start by learning about CGI and the different elements HTML provides
in a form. When you're ready to program it, there are many
options that will help, usually CGI can tackle it: