[thelist] ASP and form question

Scott Schrantz scotts at rci-nv.com
Mon Jul 8 11:51:05 CDT 2002


> -----Original Message-----
> From: Madhu Menon [mailto:webguru at vsnl.net]
>
> At 01:00 PM 7/8/2002, Sharon F. Malone wrote:
> >     And, is strDefBody the correct terminology to use? Should it be
> > strBody? Again, neither one was in the original code.
>
> Sharon, you could call it strLukeSkywalker or strCelineDion
> and it wouldn't matter. It's just a variable name. As long
> as it's not a reserved word or a function name, you're OK.

And, as long as you use the entire variable name everywhere in the code. I
saw one of your scripts that said:
   strDefBody = Request.Form("message")
...and then later on...
   objMail.Body = Body

strDefBody is the entire variable name, and you need to keep it intact. So
that line should read:
   objMail.Body = strDefBody

Same with your form variables. Whatever is inside the name="" attribute on
your form, needs to be identical to what's inside the Request.Form("") line
on your script.

If your form has
   <input type="text" name="FullName" size="35" />
Then your script *must* have
   strName = Request.Form("FullName")

Otherwise, your variables will end up blank, as you've been noticing.

--
Scott Schrantz
work: www.rci-nv.com
play: www.computer-vet.com



More information about the thelist mailing list