"$Bill Luebkert" wrote:

> Michael Meltzer wrote:
>
> > Thanks to all who answerd.
> >
> > When asking this question i did hope there is a  script already.
>
> It's too simple for a script (at least the basic editing part).
>
> > My special problem in this case is how can I present the user a previous message 
> > (if it exists) and how can the user *edit*
> > this message. Is it possible to create a form whith a text block which the user 
> > may change ?
>
> Of course - just a basic textarea tag in a form.
>
> <FORM METHOD="POST" ACTION="/cgi-bin/vacedit.pl">
> <INPUT TYPE="HIDDEN" NAME="pass" VALUE="2">
> Edit your vaction mesage:
> <BR><TEXTAREA NAME="vacation_msg" ROWS="8" COLS="40">$msg</TEXTAREA>
> </FORM>
>
> On the first call to the script, pass won't be defined and you
> will return the form above with the file content in $msg.
>
> After editing (second call pass is defined and == 2), vacation_msg
> will contain the new text to write to the file.
>
> > I did up to now not start writing any line of code.
>
> Well, get to it and write an HTML form and a few lines of CGI to
> read the parameters into.  Then all you need to do is open a file,
> read the contents into $msg and close the file.
>
> Later you can field the edited vacation msg in your CGI script
> and open the file for write and replace the old msg.  You could
> create a vacation group and make the msg writeable by that group
> and run the CGI setuid to the group (make sure you authenticate
> the user).
>
> > I am just thinking about this problem and which modules to use.
>
> No modules needed unless you want to use CGI.pm
>
> > May be this question is very trivial and you are looking for greater problems 
> > (that may arise later).
>
> Could be.
>
> --
>   ,-/-  __      _  _         $Bill Luebkert    Mailto:[EMAIL PROTECTED]
>  (_/   /  )    // //       DBE Collectibles    Mailto:[EMAIL PROTECTED]
>   / ) /--<  o // //      Castle of Medieval Myth & Magic http://www.todbe.com/
> -/-' /___/_<_</_</_    http://dbecoll.tripod.com/ (My Perl/Lakers stuff)

Your answer is wat I looked for.
Thank you very much for your help.




--
+-- Michael Meltzer -------------+-----------------------------------------+
|   AED-SICAD Aktiengesellschaft |   EMail : [EMAIL PROTECTED]  |
|   Lilienthal-Str. 7            |   Phone : +49-89-45026-108              |
|   85579 Neubiberg              |   Fax   : +49-89-45026-113              |
+--------------------------------+-----------------------------------------+



_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to