jim_wintner
09-24-2008, 10:57 PM
Hello and thanks in advance for any help.
I would like to pass form information that comes from a standard asp form into a URL string(example follows):
"http://ui.constantcontact.com/roving/wdk/API_AddSiteVisitor.jsp?loginName=benefitevents&loginPassword=xxxxxxxxx&ea=foo@bar.com&ic=test&first_name=Joe&last_name=smith"
I would then like to pass that string forward to its final destination. Login and password are fixed in advance. Email, first/last name come from form.
Some more info.
Form data is collected on "register.asp" and then passed to "register1.asp" using form method="post" action="register1.asp".
On register1.asp the form info is processed and delivered to the SQL database.
I am only a beginner with the code (it was done by a programmer who is mostly absent when needed now).
So, I need to know as much of the following as you can help with (in descending priority):
1. How to pass the .jsp string forward assuming the proper variables have been passed in the asp code. (I'm guessing this might be some kind of onload event in register1.asp). Successfully uploading the string returns a page with a "0" in one corner. I would not want that page seen. I have done this just by writing into browser address bar the string (and also using simple submit in a form with the URL as the action).
2. Where should this command live, in register.asp or register1.asp?
3. How to correctly insert the variables in the URL string from form (correct syntax using asp).
As may be obvious this is for one registrant at a time. The object is deliver the registration information to my SQL database and, at the same time, pass some info to a Constant Contact list. This allows me to integrate Constant Contact into my services to clients seamlessly.
Thank you, hope this was not too much info!
Jim
I would like to pass form information that comes from a standard asp form into a URL string(example follows):
"http://ui.constantcontact.com/roving/wdk/API_AddSiteVisitor.jsp?loginName=benefitevents&loginPassword=xxxxxxxxx&ea=foo@bar.com&ic=test&first_name=Joe&last_name=smith"
I would then like to pass that string forward to its final destination. Login and password are fixed in advance. Email, first/last name come from form.
Some more info.
Form data is collected on "register.asp" and then passed to "register1.asp" using form method="post" action="register1.asp".
On register1.asp the form info is processed and delivered to the SQL database.
I am only a beginner with the code (it was done by a programmer who is mostly absent when needed now).
So, I need to know as much of the following as you can help with (in descending priority):
1. How to pass the .jsp string forward assuming the proper variables have been passed in the asp code. (I'm guessing this might be some kind of onload event in register1.asp). Successfully uploading the string returns a page with a "0" in one corner. I would not want that page seen. I have done this just by writing into browser address bar the string (and also using simple submit in a form with the URL as the action).
2. Where should this command live, in register.asp or register1.asp?
3. How to correctly insert the variables in the URL string from form (correct syntax using asp).
As may be obvious this is for one registrant at a time. The object is deliver the registration information to my SQL database and, at the same time, pass some info to a Constant Contact list. This allows me to integrate Constant Contact into my services to clients seamlessly.
Thank you, hope this was not too much info!
Jim