OT: How to use html form input to append input to a file?

Kevin Fries kfries6 at gmail.com
Fri Jul 22 10:42:08 MST 2011


On 07/22/2011 11:37 AM, joe at actionline.com wrote:
> The form input model below works fine to send form input via email, but
> how can I modify it to write (append) the form input to a text file in a
> designated directory in my web hosted space instead of to email?
>
> <form action=http://www.bluehost.com/bluemail method=POST>
> Email address:<input size=35 maxlength=90 name=Emailfrom><br>
> Enter message:<br>  <textarea name=Message rows 7 cols=50
> wrap=virtual></textarea>
> <input type=hidden name=subject value=Subject>
> <input type=hidden name=required value= message>
> <input type=hidden name=sendtoemail value=feedback at URLaddress.com>
> <input type=hidden name=redirect value=http://www.URLaddress.com>
> <input type=submit value=Send>
> </form>

This form sends its information to a script called bluemail on your web 
server.  That script sends the email.  So, you will need to either edit 
that script, or write a new one and redirect the action= in the form 
command to the new script.

So, it depends on language options.

Kevin Fries


More information about the PLUG-discuss mailing list