navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

using email component to include form fields

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> using email component to include form fields
Page: [1]
 
J-man

 

Posts: 936
From: Canada
Status: offline

 
using email component to include form fields - 1/25/2002 21:40:45   
I'm calling a function, which i've tested prior to including form field results from a form and prior to including variables used in calculations from form field values. I've tried to include the field values by using Request.Form("field")
and i included the variables by using:
Response.write (iSumTotal)
The variables are all numeric.
Any way i got an error of:
Expected ')' in the part with the first Request.Form being:
"Age Factor: (Request.Form("age_factor"))"

I've tried many things but nothing seem to work, Any suggestion would be much appreciated.

Call mailNRedirect("Applicant qualifies for Federal Skilled Worker and occupation matching that of NOC top 3 bands" & VbCrLf & "INFO:" & VbCrLf & "Points Total: (Response.write (iSumTotal))" & VbCrLf & "Language Factor Primary: (Response.write (ppi))" & VbCrLf & "Language Factor Secondary: (Response.write (qy))" & VbCrLf & "Experience Factor: (Response.write (gg))" & VbCrLf & "Worked in Canada Factor: (Response.write (e))" & VbCrLf & "Age Factor: (Request.Form("age_factor"))" & VbCrLf & "Adaptability: (Response.write (ee))" & VbCrLf & "Need Job offer: (Request.Form("need_job_offer"))")

 
no_mac_jack

 

Posts: 295
From: Washington state, USA
Status: offline

 
RE: using email component to include form fields - 1/26/2002 0:11:51   
It's like the cat & dog string from before...you need to separate the literal text from the asp code that needs to be evaluated. Also, in this case, you don't want to use response.write. That will actually write the variables value to the browser. To just include the variable's conents, you only have to use the variable name. Corrected code follows...

Call mailNRedirect("Applicant qualifies for Federal Skilled Worker and occupation matching that of NOC top 3 bands" & VbCrLf & "INFO:" & VbCrLf & "Points Total: (" & iSumTotal & ")" & VbCrLf & "Language Factor Primary: (" & ppi & ")" & VbCrLf & "Language Factor Secondary: (" & qy & ")" & VbCrLf & "Experience Factor: (" & gg & ")" & VbCrLf & "Worked in Canada Factor: (" & e & ")" & VbCrLf & "Age Factor: (" & Request.Form("age_factor") & ")" & VbCrLf & "Adaptability: (" & ee & ")" & VbCrLf & "Need Job offer: (" & Request.Form("need_job_offer") & ")")

I think I got everything cleaned up. Let me know if it doesn't work.

~no_mac_jack

BTW-I'm working on an e-mail right now re: the pdf idea...

Friends don't let friends use Macs.

(in reply to J-man)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> using email component to include form fields
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts