Click to See Complete Forum and Search --> : Send copy of form to client


janvanheerden
12-21-2002, 10:41 PM
Hi Everybody,

I have a form where clients fill in data. The data is then submitted to a database on the server. I want to e-mail a copy of the form to the client for his/her records.

How can I do this automatically?

Thanks

Jan

ShrineDesigns
12-22-2002, 01:32 AM
i know there are cgi/perl script that can do this

or add a frame or iframe that is hidden; in that hidden frame have a form that will hold the info you want to send to the client. for info that will be transfered for the visible form to the hidden one use an onKeyUp or onBlur to copy entered data (i.e. onBlur="frameB.formB.myText.value = this.value")

to set the hidden form's action to the email address of your client
(i.e. onBlur="frameB.formB.action = this.value")

to submit the hidden form
<form name="formA" action="" method="" onSubmit="frameB.formB.submit()">

janvanheerden
12-22-2002, 09:46 PM
Thank you Shrine.

I will certainly try it

Jan