|
| |
|
|
pd_it_guy
Posts: 97 Joined: 3/4/2008 Status: offline
|
CDOSYS variable - 3/20/2008 12:08:55
All, Is there any reason why I cant pass a to or from variable to CDOSYS, thus, the initial form calls for variables "Operator" and "Repair_supervisor" each of which are the first part of valid email addrresses... thus, operator="smith" and repair_supervisor="jones" and both smith and jones @somewhere.com are working addresses.... and to feed them to the sTo and sFrom of CDOSYS... the verbiage on the confirmation page goes like this: sTo=FP_SavedFields("Operator")&"@somewhere.com" sFrom=FP_SavedFields("Repair_supervisor")&"@somewhere.com" CDO script works fine when no variable was part of the to or from. Confirm page worked fine. FP_SavedFields worked fine. What is wrong with my script. The page wont confirm, it just bounces me back to the form. Please any ideas. I thought concatenation was permissable.
|
|
|
|
rdouglass
Posts: 9167 From: Biddeford, ME USA Status: offline
|
RE: CDOSYS variable - 3/20/2008 13:10:48
quote:
sTo=FP_SavedFields("Operator")&"@somewhere.com" sFrom=FP_SavedFields("Repair_supervisor")&"@somewhere.com" Are those inside the FrontPage 'grey code' sections? I personally don't use the FP 'bots anymore but that's one area that gets some folks. When using those "FP_" variables, they need to be nested within those FP includes and not outside. You can assign them to regular ASP variables and then use them outside, but they can only be used directly inside the 'grey code'. That any help?
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
|
|
pd_it_guy
Posts: 97 Joined: 3/4/2008 Status: offline
|
RE: CDOSYS variable - 3/20/2008 18:06:10
Thanks for the reply It is not a gray 'bot function but actually a call of the saved fields. Let me be even more specific as to the problem. I can pull any saved field from the form that way, using FP_SavedFields("fieldname") and can actually use the entire variable as part of the email; thus, the subject can be a form field and it changes the mail as I want. The problem is making up a mail variable from a saved field and text; in one case to make up an email address out of just a last name, where the domain is a constant, or to put "vehicle that was broken was" concatgenated with the vehicle number. Either text or a variable by itself works just fine with the CDOSYS function but try and combine them and it bounces the page. I am assuming that the ampersand is the concatenation operator, is it not???... and we don't quote a recovered variable, but text is quoted, and a variable can be made up of partly what was recalled, and what we tack on to it in text.... or so we think. The variables are default dimensioned as something... thus, Dim sTo, Dim sFrom. Am I not concatenating properly... the variables are filled and were being posted before so saved fields does work..
|
|
|
|
pd_it_guy
Posts: 97 Joined: 3/4/2008 Status: offline
|
RE: CDOSYS variable - 3/20/2008 20:28:30
OK we got it. After reading and re-reading you reply all afternoon, I think this is essentially what you were saying all along. FIRST, you have to run the bot to charge up the variables you want to use on the page, and THEN you can pull them out with FP_SavedFields and do with them whatever you like. The concatenation was scripted correctly all along. The script in now the body of the page and luckily we can display the variables to the user as a bonus. Thank you very much for your time and assistance.
|
|
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
|
|
|