|
| |
|
|
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.
|
|
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
|
|
|