Re: [wdvltalk] ASP question again

2006-04-24 Thread Mark Krawec
Riva Is there any code on subscribe.asp that writes out the error message, if any? If you're using the snippet I sent, in the body of subscribe.asp you need to add something like response.write(errorMsg) or whenever you don't provide a name or an e-mail address you'll end up stuck on a

Re: [wdvltalk] ASP question again

2006-04-24 Thread Portman
Thanks for the reply Mark. I actually put in a JavaScript to check the form before submitting it, and it seems to work pretty well. I appreciate the help. Riva Mark Krawec wrote: Riva Is there any code on subscribe.asp that writes out the error message, if any? If you're using the snippet

Re: [wdvltalk] ASP question again

2006-04-22 Thread Portman
Thanks for the reply. How do I tell the script to go back to the page? The form is submitted on subscribe.htm and the script is at subscribe.asp. Riva Drew Trusz wrote: What you want then is just an if no else. So if string is empty show Name or Email with the instructions to go back and

Re: [wdvltalk] ASP question again

2006-04-21 Thread Mark Krawec
Riva First off, this here condition: IF strName AND strEmail THEN ensures that the form will only fail validation if both Name and E-mail are omitted - if one is omitted but the other is included, it'll go on as if nothing were wrong. More after I've had a chance for a closer look.

Re: [wdvltalk] ASP question again

2006-04-21 Thread Mark Krawec
Whoops, read that wrong. Never mind. • The WDVL Discussion List from WDVL.COM • To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or use the web interface http://e-newsletters.internet.com/discussionlists.html/ Send Your Posts To: wdvltalk@lists.wdvl.com To change

Re: [wdvltalk] ASP question again

2006-04-21 Thread Mark Krawec
OK, sorry for that first message. How about this: % dim allIn allIn = true dim errorMsg errorMsg = DIM strName, strEmail, body ' '***Collect the values '***in the form ' For Each obj in request.form if request.form(obj) then

Re: [wdvltalk] ASP question again

2006-04-21 Thread Portman
Thank you Mark. I will give it a try. Mark Krawec wrote: OK, sorry for that first message. How about this: % dim allIn allIn = true dim errorMsg errorMsg = DIM strName, strEmail, body ' '***Collect the values '***in the form ' For Each obj

Re: [wdvltalk] ASP question again

2006-04-21 Thread Portman
I get to a blank subscribe.asp page?? Mark Krawec wrote: OK, sorry for that first message. How about this: % dim allIn allIn = true dim errorMsg errorMsg = DIM strName, strEmail, body ' '***Collect the values '***in the form ' For Each obj

Re: [wdvltalk] ASP question again

2006-04-21 Thread Mark Krawec
Riva Maybe I didn't read your original note closely enough (again). What page is the form on? What page is the script on? The script I sent you presumes that the form submits to the page it's on. If the information submitted doesn't make it through validation, the user can go through the form

Re: [wdvltalk] ASP question again

2006-04-21 Thread Portman
Yes. The form is on subscribe.htm and the script is subscribe.asp. It then redirects to thankyou.htm Mark Krawec wrote: Riva Maybe I didn't read your original note closely enough (again). What page is the form on? What page is the script on? The script I sent you presumes that the form

Re: [wdvltalk] ASP question again

2006-04-21 Thread Drew Trusz
On 4/21/06, Portman [EMAIL PROTECTED] wrote: Hi all, ELSE Response.Write pPlease click back on your browser and complete the following fields:/p IF strName THEN ELSE Response.Write b• Name/bbr END IF Don't you want it to do something after the THEN before

Re: [wdvltalk] ASP question again

2006-04-21 Thread Portman
I don't know ASP . . . I want the form to make sure that both fields have been filled in before it will submit the form. Thanks, Riva Drew Trusz wrote: On 4/21/06, Portman [EMAIL PROTECTED] wrote: Hi all, ELSE Response.Write pPlease click back on your browser and complete

Re: [wdvltalk] ASP question again

2006-04-17 Thread Drew Trusz
On 4/16/06, Portman [EMAIL PROTECTED] wrote: Hi all, My ASP script is working great (thanks again) but I find the e-mail comes out all on one line, like this: Form Field Values realname : (name) email : (email) This is the code: For Each obj in request.form body = body obj

Re: [wdvltalk] ASP question again

2006-04-17 Thread Hoenig, Robert
Instead of using vbCrLf try Chr(13) Chr(13) = carriage return in ascii This is the code: For Each obj in request.form body = body obj : request.form(obj) Chr(13) Next body = body Drew Trusz [EMAIL PROTECTED] wrote: On 4/16/06, Portman [EMAIL PROTECTED] wrote:

RE: [wdvltalk] ASP question again

2006-04-17 Thread Cheryl D Wise
I don't loop though forms like that but it should work as Riva expects assuming that the email is being sent as plain text. If it is being sent as HTML then Drew's method would be correct to add the html line breaks. Cheryl D. Wise MS FrontPage MVP Certified Professional Web Developer Start to

RE: [wdvltalk] ASP question again

2006-04-17 Thread Todd Richards
Riva - I have a similar script in that it loops through the variables of the form. However, it's being sent as HTML. With that, I'm just using the br tag - which works great. It also then allows me to strongbold/strong my objects, and it makes for easier reading by the recipient. I'm not sure

Re: [wdvltalk] ASP question again

2006-04-17 Thread Portman
Thank you all. I will sit down when I have a minute and work on this. Riva • The WDVL Discussion List from WDVL.COM • To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or use the web interface http://e-newsletters.internet.com/discussionlists.html/ Send Your Posts

Re: [wdvltalk] ASP question again

2006-04-17 Thread Portman
Finally have 2 to sit down . . . I tried all the options and none of them work. The For Each obj in request.form if obj then body = body strong obj /strong: request.form(obj) brbr end if next gives an error and the others do not make any

RE: [wdvltalk] ASP question again

2006-04-17 Thread Todd Richards
What is the error? Todd -Original Message- From: Portman [mailto:[EMAIL PROTECTED] Sent: Monday, April 17, 2006 8:45 PM To: wdvltalk@lists.wdvl.com Subject: Re: [wdvltalk] ASP question again Finally have 2 to sit down . . . I tried all the options and none of them work

Re: [wdvltalk] ASP question again

2006-04-17 Thread Portman
Hi Todd, This is what I get: Microsoft VBScript compilation error '800a03ea' Syntax error /subscribe.asp, line 11 body = body strong obj /strong: -^ I am scared to fiddle with it because I don't know ASP at all. Riva

Re: [wdvltalk] ASP question again

2006-04-17 Thread Portman
Ah! I put it all on one line and it doesn't give me an error. Guess I should be sleeping and not working at 12:45 a.m!! Thanks, Riva Todd Richards wrote: What is the error? Todd • The WDVL Discussion List from WDVL.COM • To Join wdvltalk, Send An Email To: mailto:[EMAIL