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 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 blank page with no indication why you're there.

Mark


 • 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 subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.


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 blank page with no indication why you're there.

Mark


 • 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 subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.


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

drew


 • 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 subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.


Re: [wdvltalk] ASP question again

2006-04-21 Thread Drew Trusz
On 4/21/06, Portman <[EMAIL PROTECTED]> wrote:
> 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
>

> >>
> >> Response.Write "Please click back on your browser and complete
> >> the following fields:"
> >> IF strName <> ""
> >>
> >> Response.Write "• Name"
> >> END IF
> >>
> >

> >> IF strEmail <> ""
> >>
> >> Response.Write "• Email"
> >> END IF
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 complete.

drew

 • 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 subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: unknown lmsubst tag argument: ''
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.


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 "Please click back on your browser and complete
the following fields:"
IF strName <> "" THEN
ELSE
Response.Write "• Name"
END IF



Don't you want it to do something after the THEN before the ELSE?

  

IF strEmail <> "" THEN
ELSE
Response.Write "• Email"
END IF



Same thing for this THEN.

drew


 • 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 subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.


Re: [wdvltalk] ASP question again

2006-04-21 Thread Drew Trusz
On 4/21/06, Portman <[EMAIL PROTECTED]> wrote:
> Hi all,
>
>
>
> ELSE
>
> Response.Write "Please click back on your browser and complete
> the following fields:"
> IF strName <> "" THEN
> ELSE
> Response.Write "• Name"
> END IF

Don't you want it to do something after the THEN before the ELSE?

> IF strEmail <> "" THEN
> ELSE
> Response.Write "• Email"
> END IF

Same thing for this THEN.

drew

 • 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 subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: unknown lmsubst tag argument: ''
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.


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 submits to the page it's
on. If the information submitted doesn't make it through validation, the
user can go through the form again. If the information does pass
validation, the user gets redirected to the thank-you page.

Are the form and the script on different pages in your case?

Mark


 • 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 subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.


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 again. If the information does pass
validation, the user gets redirected to the thank-you page.

Are the form and the script on different pages in your case?

Mark

 • 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 subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.


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 in request.form
if request.form(obj) <> "" then
body = body & "" & "" & obj &
": " & 
		request.form(obj)

else
allIn = false
end if
next


if allIn then
strName = Request.Form("Name")
strEmail = Request.Form("E-mail")

body = "Subscriber Information:" & vbCrLf & body
body = body & ""

'
'***Sends the Email
'

Dim objSendMail
Set objSendMail = Server.CreateObject("CDO.Message")
	objSendMail.To ="[EMAIL PROTECTED]" 
	objSendMail.From ="[EMAIL PROTECTED]" 
	objSendMail.Subject = "New Newsletter Subscription"

objSendMail.HTMLBody = body
objSendMail.Send
Set objCDOMail = Nothing

response.redirect
"http://www.reallygoodfreelancewriter.com/thankyou.htm"; 
else

errorMsg = "Please enter:"
errorMsg = errorMsg & ""
for each obj in request.Form()
errorMsg = errorMsg & "" & obj & ""
next
errorMsg = errorMsg & ""
end if
%>

Somewhere on the form page, drop in a response.write(errorMsg). If this
is the first time the user is hitting the page, errorMsg will have no
value, so nothing will appear. If the user has submitted the form
without one of the required values, errorMsg should have some the
appropriate text in it.

Mark

 • 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 subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

  


 • 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 subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.


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 in request.form
if request.form(obj) <> "" then
body = body & "" & "" & obj &
": " & 
		request.form(obj)

else
allIn = false
end if
next


if allIn then
strName = Request.Form("Name")
strEmail = Request.Form("E-mail")

body = "Subscriber Information:" & vbCrLf & body
body = body & ""

'
'***Sends the Email
'

Dim objSendMail
Set objSendMail = Server.CreateObject("CDO.Message")
	objSendMail.To ="[EMAIL PROTECTED]" 
	objSendMail.From ="[EMAIL PROTECTED]" 
	objSendMail.Subject = "New Newsletter Subscription"

objSendMail.HTMLBody = body
objSendMail.Send
Set objCDOMail = Nothing

response.redirect
"http://www.reallygoodfreelancewriter.com/thankyou.htm"; 
else

errorMsg = "Please enter:"
errorMsg = errorMsg & ""
for each obj in request.Form()
errorMsg = errorMsg & "" & obj & ""
next
errorMsg = errorMsg & ""
end if
%>

Somewhere on the form page, drop in a response.write(errorMsg). If this
is the first time the user is hitting the page, errorMsg will have no
value, so nothing will appear. If the user has submitted the form
without one of the required values, errorMsg should have some the
appropriate text in it.

Mark


 • 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 subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.


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
body = body & "" & "" & obj &
": " & 
request.form(obj)
else
allIn = false
end if
next


if allIn then
strName = Request.Form("Name")
strEmail = Request.Form("E-mail")

body = "Subscriber Information:" & vbCrLf & body
body = body & ""

'
'***Sends the Email
'

Dim objSendMail
Set objSendMail = Server.CreateObject("CDO.Message")
objSendMail.To ="[EMAIL PROTECTED]" 
objSendMail.From ="[EMAIL PROTECTED]" 
objSendMail.Subject = "New Newsletter Subscription"
objSendMail.HTMLBody = body
objSendMail.Send
Set objCDOMail = Nothing

response.redirect
"http://www.reallygoodfreelancewriter.com/thankyou.htm"; 
else
errorMsg = "Please enter:"
errorMsg = errorMsg & ""
for each obj in request.Form()
errorMsg = errorMsg & "" & obj & ""
next
errorMsg = errorMsg & ""
end if
%>

Somewhere on the form page, drop in a response.write(errorMsg). If this
is the first time the user is hitting the page, errorMsg will have no
value, so nothing will appear. If the user has submitted the form
without one of the required values, errorMsg should have some the
appropriate text in it.

Mark

 • 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 subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.


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.

Mark

 • 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 subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.


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 subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.


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 PROTECTED] or
use the web interface http://e-newsletters.internet.com/discussionlists.html/
  Send Your Posts To: wdvltalk@lists.wdvl.com
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.


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 & "" & obj & ": " &
-^

I am scared to fiddle with it because I don't know ASP at all.

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 PROTECTED] or
use the web interface http://e-newsletters.internet.com/discussionlists.html/
  Send Your Posts To: wdvltalk@lists.wdvl.com
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.


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

For Each obj in request.form
  if obj <> "" then
body = body & "" & obj & ": " &
request.form(obj) & ""
  end if
next

gives an error and the others do not make any changes . . .  any idea 
what I am doing wrong?

Thanks again,
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 To: wdvltalk@lists.wdvl.com
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.


 • 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 subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.


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 & "" & obj & ": " &
request.form(obj) & ""
  end if
next

gives an error and the others do not make any changes . . .  any idea 
what I am doing wrong?


Thanks again,
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 To: wdvltalk@lists.wdvl.com
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.


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 To: wdvltalk@lists.wdvl.com
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.


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  tag -
which works great.  It also then allows me to bold my
objects, and it makes for easier reading by the recipient.

I'm not sure how many variables your form might have, but you could also add
an IF statement so that if something was blank, it wouldn't add it to the
email body.  

Todd


For Each obj in request.form
  if obj <> "" then
body = body & "" & obj & ": " &
request.form(obj) & ""
  end if
next


-Original Message-
From: Portman [mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 16, 2006 12:34 AM
To: wdvltalk@lists.wdvl.com
Subject: [wdvltalk] ASP question again

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 & " : " & request.form(obj) & vbCrLf
Next
body = body & ""


Is there a way to make it appear all on separate lines, like so?

Realname: (name)
Email: (email)


TIA,
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 To: wdvltalk@lists.wdvl.com
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.


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 Web - online web design training
See http://starttoweb.com


-Original Message-
From: 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 & " : " & request.form(obj) & vbCrLf
> Next
> body = body & ""
>
>
> Is there a way to make it appear all on separate lines, like so?
>
> Realname: (name)
> Email: (email)

Since nobody else has given this a go, I'll make a suggestion. Keep in mind
I only patch this stuff and really write in it, but I think this would work:

body=body & obj & ":" & request.form(obj) & "
" &vbCrLf Cheryl could probably nail it easily. • 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 subscription settings, add a password or view the web interface: http://intm-dl.sparklist.com/read/?forum=wdvltalk http://www.wdvl.com ___ You are currently subscribed to wdvltalk as: archive@jab.org To unsubscribe send a blank email to [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with.

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:
> 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 & " : " & request.form(obj) & vbCrLf
> Next
> body = body & ""
>
>
> Is there a way to make it appear all on separate lines, like so?
>
> Realname: (name)
> Email: (email)

Since nobody else has given this a go, I'll make a suggestion. Keep in
mind I only patch this stuff and really write in it, but I think this
would work:

body=body & obj & ":" & request.form(obj) & "
" &vbCrLf Cheryl could probably nail it easily. drew • 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 subscription settings, add a password or view the web interface: http://intm-dl.sparklist.com/read/?forum=wdvltalk http://www.wdvl.com ___ You are currently subscribed to wdvltalk as: unknown lmsubst tag argument: '' To unsubscribe send a blank email to [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with. � 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 subscription settings, add a password or view the web interface: http://intm-dl.sparklist.com/read/?forum=wdvltalk http://www.wdvl.com ___ You are currently subscribed to wdvltalk as: unknown lmsubst tag argument: '' To unsubscribe send a blank email to [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with.

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 & " : " & request.form(obj) & vbCrLf
> Next
> body = body & ""
>
>
> Is there a way to make it appear all on separate lines, like so?
>
> Realname: (name)
> Email: (email)

Since nobody else has given this a go, I'll make a suggestion. Keep in
mind I only patch this stuff and really write in it, but I think this
would work:

body=body & obj & ":" & request.form(obj) & "
" &vbCrLf Cheryl could probably nail it easily. drew • 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 subscription settings, add a password or view the web interface: http://intm-dl.sparklist.com/read/?forum=wdvltalk http://www.wdvl.com ___ You are currently subscribed to wdvltalk as: unknown lmsubst tag argument: '' To unsubscribe send a blank email to [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with.