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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to send values in to an e-mail subject field

Status
Not open for further replies.

n4s

Programmer
Joined
Nov 20, 2002
Messages
11
Location
NZ
Can any one help me in the fillowing topic.
Please read the following


<form method="POST" action="--WEBBOT-SELF--" name="ANZESOCCURRENCEREPORT" onSubmit="return display();">
<!--webbot bot="SaveResults" startspan name="xyz"
U-File="../../../_private/form_results.txt" S-Format="HTML/BR"
S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Email-Format="TEXT/PRE"
B-Email-Label-Fields="TRUE" B-Email-Subject-From-Field="FALSE" S-Email-Subject="AAA"
S-Builtin-Fields U-Confirmation-Url="ANZES_OR_Feedback_thank_you.htm"
S-Email-Address="Venkat.Cherukuri@airnz.co.nz" --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot
bot="SaveResults" endspan -->

In the above case S-Email-Subject="AAA", I need to send some dynamic value generated by javascript instead of that "AAA".

Please find following javascript

<script language="javascript">
<!-- Begin
var lot = new Array();
var a,i,y,z;
var duplicate=false;



function display()

{

lot=(lot+" ");
z=0;
while (z!=4) // CHANGE THE 4 IF YOU WANT
{
y=Math.ceil(Math.random()*4); // CHANGE THE NUMBER IF YOU WANT
var sp = lot.split(" ");
for(i=0;i<sp.length;i++)
{
if (y==sp)
{
duplicate=true;
}
}
if (duplicate==true)
{
duplicate=false;
continue ;
}
else if (duplicate==false)
{
lot=(lot+(y));

z+=1;
}
}
//alert(lot);

a=lot ;

lot="";

}
// End -->
</script>


I need to pass the value of variable 'a' instead of "AAA". Like S-Email-Subject=a;


Thank you,
SAHI
 

Given that the AAA is part of a comment, your best best is simply to ducmnet.write out the whole lot again... or if you really ahve to, create a text node, and populate its "nodevalue".

Hope this helps,
Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top