Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Sender ID 1

Status
Not open for further replies.

SlowFlight

Programmer
Jan 2, 2003
33
US
I have a form online at: When someone fills out and submits the form, it sends an email to a third party. I want the email to identify the submitter as the Sender of the email without having to open and read each email to identify the submitter. How can I do that? Currently it identifies the sender as: "NSSA Event Entry Form".

Skip Meisch

SV "Slow Flight"
1977 Catalina 22 Swing Keel
 
Firstly, change your onsubmit value on your form to:
Code:
onsubmit="return checkMandatory();"
It cuts out a bit of code.

Secondly, in your function "checkMandatory()", change:
Code:
	if (error_string == "")
		{ return true; }
to
Code:
	if (error_string == "")
		{
		[b]document.event_entry_form.sender.value = document.event_entry_form.a12Acknowledgement.value;[/b]
		return true; }

This will replace the hidden field's contents (currently set to "NSSA Event Entry Form") with the user's "Acknowledgement".

Hope this helps.

Pete.


Web Developer & Aptrix / Lotus Workplace Web Content Management (LWWCM) Specialist
w: e: Pete.Raleigh(at)lclimited.co.uk
 
Thank you VERY much. It worked great! I knew enough to know that something could be done. I just couldn't figure out just what.

Excellent post WartookMan


SV "Slow Flight"
1977 Catalina 22 Swing Keel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top