Hello,

I am trying to process a form using asp emailing (codnts) and I am having a
little trouble, processing one little part of it.

Basically I have a form on my site, which is going to email the results of
this form ( a feedback form) to my email. So it ask for a name and address
etc.. One important thing I needed to include is a list of items and
products that people would like more information on. This is a series of
checkbox's that are taken from my database.

I am just unsure about when I press the submit button how, I process it, so,
the results of the check box,, and their corresponding product labels are
mailed to my email address.

I have set up the pages to be jargon/template/trash free right now, because
if you do have time to help me, I certainly don't want to trouble you to
trawl thru code that is not necessary.



Ok, the two pages on the site (jargon free) are

http://www.tripakltd.com/contactme.asp

http://www.tripakltd.com/sendemail.asp



both pages in code



http://www.tripakltd.com/contactme.txt

http://www.tripakltd.com/sendemail.txt



Thanks in advance to anyone who can help me.



Raphael

Re: problem processing asp email by Steven

Steven
Wed Apr 14 05:06:09 CDT 2004

'// form your visitor see's......
<input type="checkbox" name="chk1"> Some text

<%
'// fproc.asp
strChk1 = request.form("chk1")
'// whatever else your doing......
%>

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)


Raphael Gluck <sorry@nospam.com> wrote in message
news:#dEiZegIEHA.2688@tk2msftngp13.phx.gbl...
> Hello,
>
> I am trying to process a form using asp emailing (codnts) and I am having
a
> little trouble, processing one little part of it.
>
> Basically I have a form on my site, which is going to email the results of
> this form ( a feedback form) to my email. So it ask for a name and address
> etc.. One important thing I needed to include is a list of items and
> products that people would like more information on. This is a series of
> checkbox's that are taken from my database.
>
> I am just unsure about when I press the submit button how, I process it,
so,
> the results of the check box,, and their corresponding product labels are
> mailed to my email address.
>
> I have set up the pages to be jargon/template/trash free right now,
because
> if you do have time to help me, I certainly don't want to trouble you to
> trawl thru code that is not necessary.
>
>
>
> Ok, the two pages on the site (jargon free) are
>
> http://www.tripakltd.com/contactme.asp
>
> http://www.tripakltd.com/sendemail.asp
>
>
>
> both pages in code
>
>
>
> http://www.tripakltd.com/contactme.txt
>
> http://www.tripakltd.com/sendemail.txt
>
>
>
> Thanks in advance to anyone who can help me.
>
>
>
> Raphael
>
>
>
>
>
>



Re: problem processing asp email by Raphael

Raphael
Wed Apr 14 05:28:57 CDT 2004

Thanks for that Steven.

I tried that, and it almost works, Almost, because i just have one little
problem, for some odd reason, in the email that gets sent to me, I only see
the first word of every checkbox option. so if one of my products are
"Adhesive Tapes" I just see Customer X wants more info on "Adhesive", and i
dont see the second word, "Tapes".

This is the code, I think, that is giving me this little problem

strBody = strBody & "<br><br><b>Please send me more info on the following
Products: -</b>"
If (Request.Form("chkProdClass")) > "" Then
strBody = strBody & "<br> " & Request.Form("chkProdClass")
End If

I hope you can help me,

Raphael
"Steven Burn" <nobody@PVT_it-mate.co.uk> wrote in message
news:uxqAghgIEHA.580@TK2MSFTNGP12.phx.gbl...
> '// form your visitor see's......
> <input type="checkbox" name="chk1"> Some text
>
> <%
> '// fproc.asp
> strChk1 = request.form("chk1")
> '// whatever else your doing......
> %>
>
> --
> Regards
>
> Steven Burn
> Ur I.T. Mate Group
> www.it-mate.co.uk
>
> Keeping it FREE!
>
> Disclaimer:
> I know I'm probably wrong, I just like taking part ;o)
>
>
> Raphael Gluck <sorry@nospam.com> wrote in message
> news:#dEiZegIEHA.2688@tk2msftngp13.phx.gbl...
> > Hello,
> >
> > I am trying to process a form using asp emailing (codnts) and I am
having
> a
> > little trouble, processing one little part of it.
> >
> > Basically I have a form on my site, which is going to email the results
of
> > this form ( a feedback form) to my email. So it ask for a name and
address
> > etc.. One important thing I needed to include is a list of items and
> > products that people would like more information on. This is a series of
> > checkbox's that are taken from my database.
> >
> > I am just unsure about when I press the submit button how, I process it,
> so,
> > the results of the check box,, and their corresponding product labels
are
> > mailed to my email address.
> >
> > I have set up the pages to be jargon/template/trash free right now,
> because
> > if you do have time to help me, I certainly don't want to trouble you to
> > trawl thru code that is not necessary.
> >
> >
> >
> > Ok, the two pages on the site (jargon free) are
> >
> > http://www.tripakltd.com/contactme.asp
> >
> > http://www.tripakltd.com/sendemail.asp
> >
> >
> >
> > both pages in code
> >
> >
> >
> > http://www.tripakltd.com/contactme.txt
> >
> > http://www.tripakltd.com/sendemail.txt
> >
> >
> >
> > Thanks in advance to anyone who can help me.
> >
> >
> >
> > Raphael
> >
> >
> >
> >
> >
> >
>
>



Re: problem processing asp email by Steven

Steven
Wed Apr 14 05:34:49 CDT 2004

strData = Request.Form("chkProdClass")

If strData <> "" then
strBody = strBody & "<br> " & strData
Else
strBody = strBody
End If

'// in the form
<input type="checkbox" name="chkProdClass" value="Some value"> Some text

Should give you the results okay......

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)


Raphael Gluck <sorry@nospam.com> wrote in message
news:##mhNtgIEHA.3840@TK2MSFTNGP11.phx.gbl...
> Thanks for that Steven.
>
> I tried that, and it almost works, Almost, because i just have one little
> problem, for some odd reason, in the email that gets sent to me, I only
see
> the first word of every checkbox option. so if one of my products are
> "Adhesive Tapes" I just see Customer X wants more info on "Adhesive", and
i
> dont see the second word, "Tapes".
>
> This is the code, I think, that is giving me this little problem
>
> strBody = strBody & "<br><br><b>Please send me more info on the following
> Products: -</b>"
> If (Request.Form("chkProdClass")) > "" Then
> strBody = strBody & "<br> " & Request.Form("chkProdClass")
> End If
>
> I hope you can help me,
>
> Raphael
> "Steven Burn" <nobody@PVT_it-mate.co.uk> wrote in message
> news:uxqAghgIEHA.580@TK2MSFTNGP12.phx.gbl...
> > '// form your visitor see's......
> > <input type="checkbox" name="chk1"> Some text
> >
> > <%
> > '// fproc.asp
> > strChk1 = request.form("chk1")
> > '// whatever else your doing......
> > %>
> >
> > --
> > Regards
> >
> > Steven Burn
> > Ur I.T. Mate Group
> > www.it-mate.co.uk
> >
> > Keeping it FREE!
> >
> > Disclaimer:
> > I know I'm probably wrong, I just like taking part ;o)
> >
> >
> > Raphael Gluck <sorry@nospam.com> wrote in message
> > news:#dEiZegIEHA.2688@tk2msftngp13.phx.gbl...
> > > Hello,
> > >
> > > I am trying to process a form using asp emailing (codnts) and I am
> having
> > a
> > > little trouble, processing one little part of it.
> > >
> > > Basically I have a form on my site, which is going to email the
results
> of
> > > this form ( a feedback form) to my email. So it ask for a name and
> address
> > > etc.. One important thing I needed to include is a list of items and
> > > products that people would like more information on. This is a series
of
> > > checkbox's that are taken from my database.
> > >
> > > I am just unsure about when I press the submit button how, I process
it,
> > so,
> > > the results of the check box,, and their corresponding product labels
> are
> > > mailed to my email address.
> > >
> > > I have set up the pages to be jargon/template/trash free right now,
> > because
> > > if you do have time to help me, I certainly don't want to trouble you
to
> > > trawl thru code that is not necessary.
> > >
> > >
> > >
> > > Ok, the two pages on the site (jargon free) are
> > >
> > > http://www.tripakltd.com/contactme.asp
> > >
> > > http://www.tripakltd.com/sendemail.asp
> > >
> > >
> > >
> > > both pages in code
> > >
> > >
> > >
> > > http://www.tripakltd.com/contactme.txt
> > >
> > > http://www.tripakltd.com/sendemail.txt
> > >
> > >
> > >
> > > Thanks in advance to anyone who can help me.
> > >
> > >
> > >
> > > Raphael
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
>
>



Re: problem processing asp email by Raphael

Raphael
Wed Apr 14 05:59:49 CDT 2004

Sorry to bother you again,
I just tried your new piece of code, but now it doesnt work at all.
Please Excuse my ignorance, but what i have done is created a new Dim
strData then pasted in the If clause

IS there any reason you created the strData? it was working fine before,
(with strBody), the only problem being, only the first word of each
checkbox, was appearing, not the entire phrase.
Does one really have to create a different variable for form data? Because
now, nothing appears at all.

If you want to have a look at the page, in code, it's
www.tripakltd.com/sendemail1.txt

Thanks

Raphael
"Steven Burn" <nobody@PVT_it-mate.co.uk> wrote in message
news:%23MpqhxgIEHA.716@TK2MSFTNGP12.phx.gbl...
> strData = Request.Form("chkProdClass")
>
> If strData <> "" then
> strBody = strBody & "<br> " & strData
> Else
> strBody = strBody
> End If
>
> '// in the form
> <input type="checkbox" name="chkProdClass" value="Some value"> Some text
>
> Should give you the results okay......
>
> --
> Regards
>
> Steven Burn
> Ur I.T. Mate Group
> www.it-mate.co.uk
>
> Keeping it FREE!
>
> Disclaimer:
> I know I'm probably wrong, I just like taking part ;o)
>
>
> Raphael Gluck <sorry@nospam.com> wrote in message
> news:##mhNtgIEHA.3840@TK2MSFTNGP11.phx.gbl...
> > Thanks for that Steven.
> >
> > I tried that, and it almost works, Almost, because i just have one
little
> > problem, for some odd reason, in the email that gets sent to me, I only
> see
> > the first word of every checkbox option. so if one of my products are
> > "Adhesive Tapes" I just see Customer X wants more info on "Adhesive",
and
> i
> > dont see the second word, "Tapes".
> >
> > This is the code, I think, that is giving me this little problem
> >
> > strBody = strBody & "<br><br><b>Please send me more info on the
following
> > Products: -</b>"
> > If (Request.Form("chkProdClass")) > "" Then
> > strBody = strBody & "<br> " & Request.Form("chkProdClass")
> > End If
> >
> > I hope you can help me,
> >
> > Raphael
> > "Steven Burn" <nobody@PVT_it-mate.co.uk> wrote in message
> > news:uxqAghgIEHA.580@TK2MSFTNGP12.phx.gbl...
> > > '// form your visitor see's......
> > > <input type="checkbox" name="chk1"> Some text
> > >
> > > <%
> > > '// fproc.asp
> > > strChk1 = request.form("chk1")
> > > '// whatever else your doing......
> > > %>
> > >
> > > --
> > > Regards
> > >
> > > Steven Burn
> > > Ur I.T. Mate Group
> > > www.it-mate.co.uk
> > >
> > > Keeping it FREE!
> > >
> > > Disclaimer:
> > > I know I'm probably wrong, I just like taking part ;o)
> > >
> > >
> > > Raphael Gluck <sorry@nospam.com> wrote in message
> > > news:#dEiZegIEHA.2688@tk2msftngp13.phx.gbl...
> > > > Hello,
> > > >
> > > > I am trying to process a form using asp emailing (codnts) and I am
> > having
> > > a
> > > > little trouble, processing one little part of it.
> > > >
> > > > Basically I have a form on my site, which is going to email the
> results
> > of
> > > > this form ( a feedback form) to my email. So it ask for a name and
> > address
> > > > etc.. One important thing I needed to include is a list of items and
> > > > products that people would like more information on. This is a
series
> of
> > > > checkbox's that are taken from my database.
> > > >
> > > > I am just unsure about when I press the submit button how, I process
> it,
> > > so,
> > > > the results of the check box,, and their corresponding product
labels
> > are
> > > > mailed to my email address.
> > > >
> > > > I have set up the pages to be jargon/template/trash free right now,
> > > because
> > > > if you do have time to help me, I certainly don't want to trouble
you
> to
> > > > trawl thru code that is not necessary.
> > > >
> > > >
> > > >
> > > > Ok, the two pages on the site (jargon free) are
> > > >
> > > > http://www.tripakltd.com/contactme.asp
> > > >
> > > > http://www.tripakltd.com/sendemail.asp
> > > >
> > > >
> > > >
> > > > both pages in code
> > > >
> > > >
> > > >
> > > > http://www.tripakltd.com/contactme.txt
> > > >
> > > > http://www.tripakltd.com/sendemail.txt
> > > >
> > > >
> > > >
> > > > Thanks in advance to anyone who can help me.
> > > >
> > > >
> > > >
> > > > Raphael
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: problem processing asp email by Steven

Steven
Wed Apr 14 06:14:35 CDT 2004

The reason I put strData = request.form........ yada, is simply to keep it
tidy when it comes to the If/Then etc, it's not actually necessary (just
easier than having to keep typing "request.form...... yada yada" each time).

I've just written and tested the following pseudo code and verified it
works......

<%
If request.querystring("s")="" then
%>
<form action="form.asp?s=yes" method="post">
<input type="checkbox" name="chk1" value="Some value"> Some value
<input type="submit" name="submit" value="check it">
</form>
<%
elseif request.querystring("s")="yes" then
if request.form("chk1")="" then
response.write "not checked"
else
response.write request.form("chk1")
end if
end if
%>

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)


Raphael Gluck <sorry@nospam.com> wrote in message
news:u2gde#gIEHA.2948@TK2MSFTNGP11.phx.gbl...
> Sorry to bother you again,
> I just tried your new piece of code, but now it doesnt work at all.
> Please Excuse my ignorance, but what i have done is created a new Dim
> strData then pasted in the If clause
>
> IS there any reason you created the strData? it was working fine before,
> (with strBody), the only problem being, only the first word of each
> checkbox, was appearing, not the entire phrase.
> Does one really have to create a different variable for form data? Because
> now, nothing appears at all.
>
> If you want to have a look at the page, in code, it's
> www.tripakltd.com/sendemail1.txt
>
> Thanks
>
> Raphael
> "Steven Burn" <nobody@PVT_it-mate.co.uk> wrote in message
> news:%23MpqhxgIEHA.716@TK2MSFTNGP12.phx.gbl...
> > strData = Request.Form("chkProdClass")
> >
> > If strData <> "" then
> > strBody = strBody & "<br> " & strData
> > Else
> > strBody = strBody
> > End If
> >
> > '// in the form
> > <input type="checkbox" name="chkProdClass" value="Some value"> Some text
> >
> > Should give you the results okay......
> >
> > --
> > Regards
> >
> > Steven Burn
> > Ur I.T. Mate Group
> > www.it-mate.co.uk
> >
> > Keeping it FREE!
> >
> > Disclaimer:
> > I know I'm probably wrong, I just like taking part ;o)
> >
> >
> > Raphael Gluck <sorry@nospam.com> wrote in message
> > news:##mhNtgIEHA.3840@TK2MSFTNGP11.phx.gbl...
> > > Thanks for that Steven.
> > >
> > > I tried that, and it almost works, Almost, because i just have one
> little
> > > problem, for some odd reason, in the email that gets sent to me, I
only
> > see
> > > the first word of every checkbox option. so if one of my products are
> > > "Adhesive Tapes" I just see Customer X wants more info on "Adhesive",
> and
> > i
> > > dont see the second word, "Tapes".
> > >
> > > This is the code, I think, that is giving me this little problem
> > >
> > > strBody = strBody & "<br><br><b>Please send me more info on the
> following
> > > Products: -</b>"
> > > If (Request.Form("chkProdClass")) > "" Then
> > > strBody = strBody & "<br> " & Request.Form("chkProdClass")
> > > End If
> > >
> > > I hope you can help me,
> > >
> > > Raphael
> > > "Steven Burn" <nobody@PVT_it-mate.co.uk> wrote in message
> > > news:uxqAghgIEHA.580@TK2MSFTNGP12.phx.gbl...
> > > > '// form your visitor see's......
> > > > <input type="checkbox" name="chk1"> Some text
> > > >
> > > > <%
> > > > '// fproc.asp
> > > > strChk1 = request.form("chk1")
> > > > '// whatever else your doing......
> > > > %>
> > > >
> > > > --
> > > > Regards
> > > >
> > > > Steven Burn
> > > > Ur I.T. Mate Group
> > > > www.it-mate.co.uk
> > > >
> > > > Keeping it FREE!
> > > >
> > > > Disclaimer:
> > > > I know I'm probably wrong, I just like taking part ;o)
> > > >
> > > >
> > > > Raphael Gluck <sorry@nospam.com> wrote in message
> > > > news:#dEiZegIEHA.2688@tk2msftngp13.phx.gbl...
> > > > > Hello,
> > > > >
> > > > > I am trying to process a form using asp emailing (codnts) and I am
> > > having
> > > > a
> > > > > little trouble, processing one little part of it.
> > > > >
> > > > > Basically I have a form on my site, which is going to email the
> > results
> > > of
> > > > > this form ( a feedback form) to my email. So it ask for a name and
> > > address
> > > > > etc.. One important thing I needed to include is a list of items
and
> > > > > products that people would like more information on. This is a
> series
> > of
> > > > > checkbox's that are taken from my database.
> > > > >
> > > > > I am just unsure about when I press the submit button how, I
process
> > it,
> > > > so,
> > > > > the results of the check box,, and their corresponding product
> labels
> > > are
> > > > > mailed to my email address.
> > > > >
> > > > > I have set up the pages to be jargon/template/trash free right
now,
> > > > because
> > > > > if you do have time to help me, I certainly don't want to trouble
> you
> > to
> > > > > trawl thru code that is not necessary.
> > > > >
> > > > >
> > > > >
> > > > > Ok, the two pages on the site (jargon free) are
> > > > >
> > > > > http://www.tripakltd.com/contactme.asp
> > > > >
> > > > > http://www.tripakltd.com/sendemail.asp
> > > > >
> > > > >
> > > > >
> > > > > both pages in code
> > > > >
> > > > >
> > > > >
> > > > > http://www.tripakltd.com/contactme.txt
> > > > >
> > > > > http://www.tripakltd.com/sendemail.txt
> > > > >
> > > > >
> > > > >
> > > > > Thanks in advance to anyone who can help me.
> > > > >
> > > > >
> > > > >
> > > > > Raphael
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: problem processing asp email by Raphael

Raphael
Wed Apr 14 06:30:51 CDT 2004

Sorry I am completely lost here.
I appreciate you have spent quite a bit of your time in helping me this
morning, but must i make all those changes, just so the second word prints?
If yes, do i simply add all that code, to my form page (i.e not my
processing page, in my case contactme1.asp) ?

Thanks so much

Raphael
"Steven Burn" <nobody@PVT_it-mate.co.uk> wrote in message
news:OK9IvHhIEHA.2720@TK2MSFTNGP11.phx.gbl...
> The reason I put strData = request.form........ yada, is simply to keep it
> tidy when it comes to the If/Then etc, it's not actually necessary (just
> easier than having to keep typing "request.form...... yada yada" each
time).
>
> I've just written and tested the following pseudo code and verified it
> works......
>
> <%
> If request.querystring("s")="" then
> %>
> <form action="form.asp?s=yes" method="post">
> <input type="checkbox" name="chk1" value="Some value"> Some value
> <input type="submit" name="submit" value="check it">
> </form>
> <%
> elseif request.querystring("s")="yes" then
> if request.form("chk1")="" then
> response.write "not checked"
> else
> response.write request.form("chk1")
> end if
> end if
> %>
>
> --
> Regards
>
> Steven Burn
> Ur I.T. Mate Group
> www.it-mate.co.uk
>
> Keeping it FREE!
>
> Disclaimer:
> I know I'm probably wrong, I just like taking part ;o)
>
>
> Raphael Gluck <sorry@nospam.com> wrote in message
> news:u2gde#gIEHA.2948@TK2MSFTNGP11.phx.gbl...
> > Sorry to bother you again,
> > I just tried your new piece of code, but now it doesnt work at all.
> > Please Excuse my ignorance, but what i have done is created a new Dim
> > strData then pasted in the If clause
> >
> > IS there any reason you created the strData? it was working fine before,
> > (with strBody), the only problem being, only the first word of each
> > checkbox, was appearing, not the entire phrase.
> > Does one really have to create a different variable for form data?
Because
> > now, nothing appears at all.
> >
> > If you want to have a look at the page, in code, it's
> > www.tripakltd.com/sendemail1.txt
> >
> > Thanks
> >
> > Raphael
> > "Steven Burn" <nobody@PVT_it-mate.co.uk> wrote in message
> > news:%23MpqhxgIEHA.716@TK2MSFTNGP12.phx.gbl...
> > > strData = Request.Form("chkProdClass")
> > >
> > > If strData <> "" then
> > > strBody = strBody & "<br> " & strData
> > > Else
> > > strBody = strBody
> > > End If
> > >
> > > '// in the form
> > > <input type="checkbox" name="chkProdClass" value="Some value"> Some
text
> > >
> > > Should give you the results okay......
> > >
> > > --
> > > Regards
> > >
> > > Steven Burn
> > > Ur I.T. Mate Group
> > > www.it-mate.co.uk
> > >
> > > Keeping it FREE!
> > >
> > > Disclaimer:
> > > I know I'm probably wrong, I just like taking part ;o)
> > >
> > >
> > > Raphael Gluck <sorry@nospam.com> wrote in message
> > > news:##mhNtgIEHA.3840@TK2MSFTNGP11.phx.gbl...
> > > > Thanks for that Steven.
> > > >
> > > > I tried that, and it almost works, Almost, because i just have one
> > little
> > > > problem, for some odd reason, in the email that gets sent to me, I
> only
> > > see
> > > > the first word of every checkbox option. so if one of my products
are
> > > > "Adhesive Tapes" I just see Customer X wants more info on
"Adhesive",
> > and
> > > i
> > > > dont see the second word, "Tapes".
> > > >
> > > > This is the code, I think, that is giving me this little problem
> > > >
> > > > strBody = strBody & "<br><br><b>Please send me more info on the
> > following
> > > > Products: -</b>"
> > > > If (Request.Form("chkProdClass")) > "" Then
> > > > strBody = strBody & "<br> " & Request.Form("chkProdClass")
> > > > End If
> > > >
> > > > I hope you can help me,
> > > >
> > > > Raphael
> > > > "Steven Burn" <nobody@PVT_it-mate.co.uk> wrote in message
> > > > news:uxqAghgIEHA.580@TK2MSFTNGP12.phx.gbl...
> > > > > '// form your visitor see's......
> > > > > <input type="checkbox" name="chk1"> Some text
> > > > >
> > > > > <%
> > > > > '// fproc.asp
> > > > > strChk1 = request.form("chk1")
> > > > > '// whatever else your doing......
> > > > > %>
> > > > >
> > > > > --
> > > > > Regards
> > > > >
> > > > > Steven Burn
> > > > > Ur I.T. Mate Group
> > > > > www.it-mate.co.uk
> > > > >
> > > > > Keeping it FREE!
> > > > >
> > > > > Disclaimer:
> > > > > I know I'm probably wrong, I just like taking part ;o)
> > > > >
> > > > >
> > > > > Raphael Gluck <sorry@nospam.com> wrote in message
> > > > > news:#dEiZegIEHA.2688@tk2msftngp13.phx.gbl...
> > > > > > Hello,
> > > > > >
> > > > > > I am trying to process a form using asp emailing (codnts) and I
am
> > > > having
> > > > > a
> > > > > > little trouble, processing one little part of it.
> > > > > >
> > > > > > Basically I have a form on my site, which is going to email the
> > > results
> > > > of
> > > > > > this form ( a feedback form) to my email. So it ask for a name
and
> > > > address
> > > > > > etc.. One important thing I needed to include is a list of items
> and
> > > > > > products that people would like more information on. This is a
> > series
> > > of
> > > > > > checkbox's that are taken from my database.
> > > > > >
> > > > > > I am just unsure about when I press the submit button how, I
> process
> > > it,
> > > > > so,
> > > > > > the results of the check box,, and their corresponding product
> > labels
> > > > are
> > > > > > mailed to my email address.
> > > > > >
> > > > > > I have set up the pages to be jargon/template/trash free right
> now,
> > > > > because
> > > > > > if you do have time to help me, I certainly don't want to
trouble
> > you
> > > to
> > > > > > trawl thru code that is not necessary.
> > > > > >
> > > > > >
> > > > > >
> > > > > > Ok, the two pages on the site (jargon free) are
> > > > > >
> > > > > > http://www.tripakltd.com/contactme.asp
> > > > > >
> > > > > > http://www.tripakltd.com/sendemail.asp
> > > > > >
> > > > > >
> > > > > >
> > > > > > both pages in code
> > > > > >
> > > > > >
> > > > > >
> > > > > > http://www.tripakltd.com/contactme.txt
> > > > > >
> > > > > > http://www.tripakltd.com/sendemail.txt
> > > > > >
> > > > > >
> > > > > >
> > > > > > Thanks in advance to anyone who can help me.
> > > > > >
> > > > > >
> > > > > >
> > > > > > Raphael
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: problem processing asp email by Steven

Steven
Wed Apr 14 06:35:36 CDT 2004

If your form is in a different page to your processing code then you need
only concern yourself with;

> if request.form("chk1")="" then
> response.write "not checked"
> else
> response.write request.form("chk1")
> end if

I only wrote the pseudo code as I posted, as I like to keep things in one
page.

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)


Raphael Gluck <sorry@nospam.com> wrote in message
news:#2Me0PhIEHA.2376@TK2MSFTNGP12.phx.gbl...
> Sorry I am completely lost here.
> I appreciate you have spent quite a bit of your time in helping me this
> morning, but must i make all those changes, just so the second word
prints?
> If yes, do i simply add all that code, to my form page (i.e not my
> processing page, in my case contactme1.asp) ?
>
> Thanks so much
>
> Raphael
> "Steven Burn" <nobody@PVT_it-mate.co.uk> wrote in message
> news:OK9IvHhIEHA.2720@TK2MSFTNGP11.phx.gbl...
> > The reason I put strData = request.form........ yada, is simply to keep
it
> > tidy when it comes to the If/Then etc, it's not actually necessary (just
> > easier than having to keep typing "request.form...... yada yada" each
> time).
> >
> > I've just written and tested the following pseudo code and verified it
> > works......
> >
> > <%
> > If request.querystring("s")="" then
> > %>
> > <form action="form.asp?s=yes" method="post">
> > <input type="checkbox" name="chk1" value="Some value"> Some
value
> > <input type="submit" name="submit" value="check it">
> > </form>
> > <%
> > elseif request.querystring("s")="yes" then
> > if request.form("chk1")="" then
> > response.write "not checked"
> > else
> > response.write request.form("chk1")
> > end if
> > end if
> > %>
> >
> > --
> > Regards
> >
> > Steven Burn
> > Ur I.T. Mate Group
> > www.it-mate.co.uk
> >
> > Keeping it FREE!
> >
> > Disclaimer:
> > I know I'm probably wrong, I just like taking part ;o)
> >
> >
> > Raphael Gluck <sorry@nospam.com> wrote in message
> > news:u2gde#gIEHA.2948@TK2MSFTNGP11.phx.gbl...
> > > Sorry to bother you again,
> > > I just tried your new piece of code, but now it doesnt work at all.
> > > Please Excuse my ignorance, but what i have done is created a new Dim
> > > strData then pasted in the If clause
> > >
> > > IS there any reason you created the strData? it was working fine
before,
> > > (with strBody), the only problem being, only the first word of each
> > > checkbox, was appearing, not the entire phrase.
> > > Does one really have to create a different variable for form data?
> Because
> > > now, nothing appears at all.
> > >
> > > If you want to have a look at the page, in code, it's
> > > www.tripakltd.com/sendemail1.txt
> > >
> > > Thanks
> > >
> > > Raphael
> > > "Steven Burn" <nobody@PVT_it-mate.co.uk> wrote in message
> > > news:%23MpqhxgIEHA.716@TK2MSFTNGP12.phx.gbl...
> > > > strData = Request.Form("chkProdClass")
> > > >
> > > > If strData <> "" then
> > > > strBody = strBody & "<br> " & strData
> > > > Else
> > > > strBody = strBody
> > > > End If
> > > >
> > > > '// in the form
> > > > <input type="checkbox" name="chkProdClass" value="Some value"> Some
> text
> > > >
> > > > Should give you the results okay......
> > > >
> > > > --
> > > > Regards
> > > >
> > > > Steven Burn
> > > > Ur I.T. Mate Group
> > > > www.it-mate.co.uk
> > > >
> > > > Keeping it FREE!
> > > >
> > > > Disclaimer:
> > > > I know I'm probably wrong, I just like taking part ;o)
> > > >
> > > >
> > > > Raphael Gluck <sorry@nospam.com> wrote in message
> > > > news:##mhNtgIEHA.3840@TK2MSFTNGP11.phx.gbl...
> > > > > Thanks for that Steven.
> > > > >
> > > > > I tried that, and it almost works, Almost, because i just have one
> > > little
> > > > > problem, for some odd reason, in the email that gets sent to me, I
> > only
> > > > see
> > > > > the first word of every checkbox option. so if one of my products
> are
> > > > > "Adhesive Tapes" I just see Customer X wants more info on
> "Adhesive",
> > > and
> > > > i
> > > > > dont see the second word, "Tapes".
> > > > >
> > > > > This is the code, I think, that is giving me this little problem
> > > > >
> > > > > strBody = strBody & "<br><br><b>Please send me more info on the
> > > following
> > > > > Products: -</b>"
> > > > > If (Request.Form("chkProdClass")) > "" Then
> > > > > strBody = strBody & "<br> " & Request.Form("chkProdClass")
> > > > > End If
> > > > >
> > > > > I hope you can help me,
> > > > >
> > > > > Raphael
> > > > > "Steven Burn" <nobody@PVT_it-mate.co.uk> wrote in message
> > > > > news:uxqAghgIEHA.580@TK2MSFTNGP12.phx.gbl...
> > > > > > '// form your visitor see's......
> > > > > > <input type="checkbox" name="chk1"> Some text
> > > > > >
> > > > > > <%
> > > > > > '// fproc.asp
> > > > > > strChk1 = request.form("chk1")
> > > > > > '// whatever else your doing......
> > > > > > %>
> > > > > >
> > > > > > --
> > > > > > Regards
> > > > > >
> > > > > > Steven Burn
> > > > > > Ur I.T. Mate Group
> > > > > > www.it-mate.co.uk
> > > > > >
> > > > > > Keeping it FREE!
> > > > > >
> > > > > > Disclaimer:
> > > > > > I know I'm probably wrong, I just like taking part ;o)
> > > > > >
> > > > > >
> > > > > > Raphael Gluck <sorry@nospam.com> wrote in message
> > > > > > news:#dEiZegIEHA.2688@tk2msftngp13.phx.gbl...
> > > > > > > Hello,
> > > > > > >
> > > > > > > I am trying to process a form using asp emailing (codnts) and
I
> am
> > > > > having
> > > > > > a
> > > > > > > little trouble, processing one little part of it.
> > > > > > >
> > > > > > > Basically I have a form on my site, which is going to email
the
> > > > results
> > > > > of
> > > > > > > this form ( a feedback form) to my email. So it ask for a name
> and
> > > > > address
> > > > > > > etc.. One important thing I needed to include is a list of
items
> > and
> > > > > > > products that people would like more information on. This is a
> > > series
> > > > of
> > > > > > > checkbox's that are taken from my database.
> > > > > > >
> > > > > > > I am just unsure about when I press the submit button how, I
> > process
> > > > it,
> > > > > > so,
> > > > > > > the results of the check box,, and their corresponding product
> > > labels
> > > > > are
> > > > > > > mailed to my email address.
> > > > > > >
> > > > > > > I have set up the pages to be jargon/template/trash free right
> > now,
> > > > > > because
> > > > > > > if you do have time to help me, I certainly don't want to
> trouble
> > > you
> > > > to
> > > > > > > trawl thru code that is not necessary.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Ok, the two pages on the site (jargon free) are
> > > > > > >
> > > > > > > http://www.tripakltd.com/contactme.asp
> > > > > > >
> > > > > > > http://www.tripakltd.com/sendemail.asp
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > both pages in code
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > http://www.tripakltd.com/contactme.txt
> > > > > > >
> > > > > > > http://www.tripakltd.com/sendemail.txt
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Thanks in advance to anyone who can help me.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Raphael
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: problem processing asp email by Raphael

Raphael
Wed Apr 14 07:17:23 CDT 2004

Ok, I am so sorry for bothering you.
I am trying all your methods but they were not working.
I said before it was almost done, but now it seems to not work at all.
Basically it's almost working, when the form processes, i see it in the
email, it's just i get the first word of every product, rather than the full
phrase.
Please if you have a moment look at my site www.tripakltd.com/contactme1.asp
, scroll down to the checkboxes, That is the core problem, when the mail is
sent, I only get the first word of each product.

Here's the code, that worked, albeit, just the first word of every checkbox.


strBody = strBody & "<br><br><b>Please send me more info on the following
Products: -</b>"
If (Request.Form("chkProdClass")) > "" Then
strBody = strBody & "<br> " & Request.Form("chkProdClass")
End If

I hope you can solve this for me

Thanks so much
"Steven Burn" <nobody@PVT_it-mate.co.uk> wrote in message
news:esJQgThIEHA.3832@TK2MSFTNGP12.phx.gbl...
> If your form is in a different page to your processing code then you need
> only concern yourself with;
>
> > if request.form("chk1")="" then
> > response.write "not checked"
> > else
> > response.write request.form("chk1")
> > end if
>
> I only wrote the pseudo code as I posted, as I like to keep things in one
> page.
>
> --
> Regards
>
> Steven Burn
> Ur I.T. Mate Group
> www.it-mate.co.uk
>
> Keeping it FREE!
>
> Disclaimer:
> I know I'm probably wrong, I just like taking part ;o)
>
>
> Raphael Gluck <sorry@nospam.com> wrote in message
> news:#2Me0PhIEHA.2376@TK2MSFTNGP12.phx.gbl...
> > Sorry I am completely lost here.
> > I appreciate you have spent quite a bit of your time in helping me this
> > morning, but must i make all those changes, just so the second word
> prints?
> > If yes, do i simply add all that code, to my form page (i.e not my
> > processing page, in my case contactme1.asp) ?
> >
> > Thanks so much
> >
> > Raphael
> > "Steven Burn" <nobody@PVT_it-mate.co.uk> wrote in message
> > news:OK9IvHhIEHA.2720@TK2MSFTNGP11.phx.gbl...
> > > The reason I put strData = request.form........ yada, is simply to
keep
> it
> > > tidy when it comes to the If/Then etc, it's not actually necessary
(just
> > > easier than having to keep typing "request.form...... yada yada" each
> > time).
> > >
> > > I've just written and tested the following pseudo code and verified it
> > > works......
> > >
> > > <%
> > > If request.querystring("s")="" then
> > > %>
> > > <form action="form.asp?s=yes" method="post">
> > > <input type="checkbox" name="chk1" value="Some value"> Some
> value
> > > <input type="submit" name="submit" value="check it">
> > > </form>
> > > <%
> > > elseif request.querystring("s")="yes" then
> > > if request.form("chk1")="" then
> > > response.write "not checked"
> > > else
> > > response.write request.form("chk1")
> > > end if
> > > end if
> > > %>
> > >
> > > --
> > > Regards
> > >
> > > Steven Burn
> > > Ur I.T. Mate Group
> > > www.it-mate.co.uk
> > >
> > > Keeping it FREE!
> > >
> > > Disclaimer:
> > > I know I'm probably wrong, I just like taking part ;o)
> > >
> > >
> > > Raphael Gluck <sorry@nospam.com> wrote in message
> > > news:u2gde#gIEHA.2948@TK2MSFTNGP11.phx.gbl...
> > > > Sorry to bother you again,
> > > > I just tried your new piece of code, but now it doesnt work at all.
> > > > Please Excuse my ignorance, but what i have done is created a new
Dim
> > > > strData then pasted in the If clause
> > > >
> > > > IS there any reason you created the strData? it was working fine
> before,
> > > > (with strBody), the only problem being, only the first word of each
> > > > checkbox, was appearing, not the entire phrase.
> > > > Does one really have to create a different variable for form data?
> > Because
> > > > now, nothing appears at all.
> > > >
> > > > If you want to have a look at the page, in code, it's
> > > > www.tripakltd.com/sendemail1.txt
> > > >
> > > > Thanks
> > > >
> > > > Raphael
> > > > "Steven Burn" <nobody@PVT_it-mate.co.uk> wrote in message
> > > > news:%23MpqhxgIEHA.716@TK2MSFTNGP12.phx.gbl...
> > > > > strData = Request.Form("chkProdClass")
> > > > >
> > > > > If strData <> "" then
> > > > > strBody = strBody & "<br> " & strData
> > > > > Else
> > > > > strBody = strBody
> > > > > End If
> > > > >
> > > > > '// in the form
> > > > > <input type="checkbox" name="chkProdClass" value="Some value">
Some
> > text
> > > > >
> > > > > Should give you the results okay......
> > > > >
> > > > > --
> > > > > Regards
> > > > >
> > > > > Steven Burn
> > > > > Ur I.T. Mate Group
> > > > > www.it-mate.co.uk
> > > > >
> > > > > Keeping it FREE!
> > > > >
> > > > > Disclaimer:
> > > > > I know I'm probably wrong, I just like taking part ;o)
> > > > >
> > > > >
> > > > > Raphael Gluck <sorry@nospam.com> wrote in message
> > > > > news:##mhNtgIEHA.3840@TK2MSFTNGP11.phx.gbl...
> > > > > > Thanks for that Steven.
> > > > > >
> > > > > > I tried that, and it almost works, Almost, because i just have
one
> > > > little
> > > > > > problem, for some odd reason, in the email that gets sent to me,
I
> > > only
> > > > > see
> > > > > > the first word of every checkbox option. so if one of my
products
> > are
> > > > > > "Adhesive Tapes" I just see Customer X wants more info on
> > "Adhesive",
> > > > and
> > > > > i
> > > > > > dont see the second word, "Tapes".
> > > > > >
> > > > > > This is the code, I think, that is giving me this little problem
> > > > > >
> > > > > > strBody = strBody & "<br><br><b>Please send me more info on the
> > > > following
> > > > > > Products: -</b>"
> > > > > > If (Request.Form("chkProdClass")) > "" Then
> > > > > > strBody = strBody & "<br> " & Request.Form("chkProdClass")
> > > > > > End If
> > > > > >
> > > > > > I hope you can help me,
> > > > > >
> > > > > > Raphael
> > > > > > "Steven Burn" <nobody@PVT_it-mate.co.uk> wrote in message
> > > > > > news:uxqAghgIEHA.580@TK2MSFTNGP12.phx.gbl...
> > > > > > > '// form your visitor see's......
> > > > > > > <input type="checkbox" name="chk1"> Some text
> > > > > > >
> > > > > > > <%
> > > > > > > '// fproc.asp
> > > > > > > strChk1 = request.form("chk1")
> > > > > > > '// whatever else your doing......
> > > > > > > %>
> > > > > > >
> > > > > > > --
> > > > > > > Regards
> > > > > > >
> > > > > > > Steven Burn
> > > > > > > Ur I.T. Mate Group
> > > > > > > www.it-mate.co.uk
> > > > > > >
> > > > > > > Keeping it FREE!
> > > > > > >
> > > > > > > Disclaimer:
> > > > > > > I know I'm probably wrong, I just like taking part ;o)
> > > > > > >
> > > > > > >
> > > > > > > Raphael Gluck <sorry@nospam.com> wrote in message
> > > > > > > news:#dEiZegIEHA.2688@tk2msftngp13.phx.gbl...
> > > > > > > > Hello,
> > > > > > > >
> > > > > > > > I am trying to process a form using asp emailing (codnts)
and
> I
> > am
> > > > > > having
> > > > > > > a
> > > > > > > > little trouble, processing one little part of it.
> > > > > > > >
> > > > > > > > Basically I have a form on my site, which is going to email
> the
> > > > > results
> > > > > > of
> > > > > > > > this form ( a feedback form) to my email. So it ask for a
name
> > and
> > > > > > address
> > > > > > > > etc.. One important thing I needed to include is a list of
> items
> > > and
> > > > > > > > products that people would like more information on. This is
a
> > > > series
> > > > > of
> > > > > > > > checkbox's that are taken from my database.
> > > > > > > >
> > > > > > > > I am just unsure about when I press the submit button how, I
> > > process
> > > > > it,
> > > > > > > so,
> > > > > > > > the results of the check box,, and their corresponding
product
> > > > labels
> > > > > > are
> > > > > > > > mailed to my email address.
> > > > > > > >
> > > > > > > > I have set up the pages to be jargon/template/trash free
right
> > > now,
> > > > > > > because
> > > > > > > > if you do have time to help me, I certainly don't want to
> > trouble
> > > > you
> > > > > to
> > > > > > > > trawl thru code that is not necessary.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Ok, the two pages on the site (jargon free) are
> > > > > > > >
> > > > > > > > http://www.tripakltd.com/contactme.asp
> > > > > > > >
> > > > > > > > http://www.tripakltd.com/sendemail.asp
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > both pages in code
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > http://www.tripakltd.com/contactme.txt
> > > > > > > >
> > > > > > > > http://www.tripakltd.com/sendemail.txt
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Thanks in advance to anyone who can help me.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Raphael
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: problem processing asp email by Bob

Bob
Wed Apr 14 07:48:58 CDT 2004

You need to quote your values
<input name="chkProdClass" type="checkbox" id="chkProdClass" value="Adhesive
Tape Dispensers">

Not
<input name="chkProdClass" type="checkbox" id="chkProdClass" value=Adhesive
Tape Dispensers>

Bob Lehmann

"Raphael Gluck" <sorry@nospam.com> wrote in message
news:%23duRzphIEHA.828@TK2MSFTNGP10.phx.gbl...
> Ok, I am so sorry for bothering you.
> I am trying all your methods but they were not working.
> I said before it was almost done, but now it seems to not work at all.
> Basically it's almost working, when the form processes, i see it in the
> email, it's just i get the first word of every product, rather than the
full
> phrase.
> Please if you have a moment look at my site
www.tripakltd.com/contactme1.asp
> , scroll down to the checkboxes, That is the core problem, when the mail
is
> sent, I only get the first word of each product.
>
> Here's the code, that worked, albeit, just the first word of every
checkbox.
>
>
> strBody = strBody & "<br><br><b>Please send me more info on the following
> Products: -</b>"
> If (Request.Form("chkProdClass")) > "" Then
> strBody = strBody & "<br> " & Request.Form("chkProdClass")
> End If
>
> I hope you can solve this for me
>
> Thanks so much
> "Steven Burn" <nobody@PVT_it-mate.co.uk> wrote in message
> news:esJQgThIEHA.3832@TK2MSFTNGP12.phx.gbl...
> > If your form is in a different page to your processing code then you
need
> > only concern yourself with;
> >
> > > if request.form("chk1")="" then
> > > response.write "not checked"
> > > else
> > > response.write request.form("chk1")
> > > end if
> >
> > I only wrote the pseudo code as I posted, as I like to keep things in
one
> > page.
> >
> > --
> > Regards
> >
> > Steven Burn
> > Ur I.T. Mate Group
> > www.it-mate.co.uk
> >
> > Keeping it FREE!
> >
> > Disclaimer:
> > I know I'm probably wrong, I just like taking part ;o)
> >
> >
> > Raphael Gluck <sorry@nospam.com> wrote in message
> > news:#2Me0PhIEHA.2376@TK2MSFTNGP12.phx.gbl...
> > > Sorry I am completely lost here.
> > > I appreciate you have spent quite a bit of your time in helping me
this
> > > morning, but must i make all those changes, just so the second word
> > prints?
> > > If yes, do i simply add all that code, to my form page (i.e not my
> > > processing page, in my case contactme1.asp) ?
> > >
> > > Thanks so much
> > >
> > > Raphael
> > > "Steven Burn" <nobody@PVT_it-mate.co.uk> wrote in message
> > > news:OK9IvHhIEHA.2720@TK2MSFTNGP11.phx.gbl...
> > > > The reason I put strData = request.form........ yada, is simply to
> keep
> > it
> > > > tidy when it comes to the If/Then etc, it's not actually necessary
> (just
> > > > easier than having to keep typing "request.form...... yada yada"
each
> > > time).
> > > >
> > > > I've just written and tested the following pseudo code and verified
it
> > > > works......
> > > >
> > > > <%
> > > > If request.querystring("s")="" then
> > > > %>
> > > > <form action="form.asp?s=yes" method="post">
> > > > <input type="checkbox" name="chk1" value="Some value"> Some
> > value
> > > > <input type="submit" name="submit" value="check it">
> > > > </form>
> > > > <%
> > > > elseif request.querystring("s")="yes" then
> > > > if request.form("chk1")="" then
> > > > response.write "not checked"
> > > > else
> > > > response.write request.form("chk1")
> > > > end if
> > > > end if
> > > > %>
> > > >
> > > > --
> > > > Regards
> > > >
> > > > Steven Burn
> > > > Ur I.T. Mate Group
> > > > www.it-mate.co.uk
> > > >
> > > > Keeping it FREE!
> > > >
> > > > Disclaimer:
> > > > I know I'm probably wrong, I just like taking part ;o)
> > > >
> > > >
> > > > Raphael Gluck <sorry@nospam.com> wrote in message
> > > > news:u2gde#gIEHA.2948@TK2MSFTNGP11.phx.gbl...
> > > > > Sorry to bother you again,
> > > > > I just tried your new piece of code, but now it doesnt work at
all.
> > > > > Please Excuse my ignorance, but what i have done is created a new
> Dim
> > > > > strData then p