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

Sending Resulting ASP Form Problem

Status
Not open for further replies.

nidifice

Programmer
Oct 9, 2003
47
0
0
US
I have a form.asp page that 'POST's data into a result.asp. After the result.asp page loads, I want to send an exact copy of that page in an email. Suggestions?
 
I did get it all working.

Here is my code;

':::::::::::::::::::::::::::::::::::::::::::::::::
dim item,strpost

'loop through the variables posted by the form and create
'a string to send as post variables for the next page
for each item in request.Form
if request.form(item) <> &quot;&quot; then
strpost = strpost & item & &quot;=&quot; & request.form(item) & &quot;&&quot;
end if
next

strpost = left(strpost,len(strpost) - 1)


Response.Buffer = True
Dim strpost, Mailer,xml
Set xml = Server.CreateObject(&quot;MSXML2.ServerXMLHTTP&quot;)

xml.Open &quot;POST&quot;, &quot;ht*tp://gnet/frm_timeclock_verify.asp&quot;,false,&quot;domain\user&quot;,&quot;password&quot;

xml.setRequestHeader &quot;Content-Type&quot;, &quot;application/x-
xml.Send replace(strpost,&quot; &quot;,&quot;%20&quot;)

strBody = xml.responseText

'I have my own mail function, I pass the xml.response as the body
SendMail (strFromEmail, strToEmail, strSubject, strBody)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top