[thelist] ASP and form question

Sharon F. Malone sfmalo at 24caratdesign.com
Mon Jul 8 19:09:00 CDT 2002


You're absolutely right! Somewhere in the past few days I changed the Form name and forgot to change the javascript function/onSubmit info as well. Just did that. However, that didn't cure it. Still not getting the form data passed to the email.

I've nuked the <input hidden>s, placed strBody  as in <%
Dim objMail, strBody at the top of the script, fixed the two form fields (homephone and workphone) that I'd missed (took out the spaces).

Again, here's where the form is located:
http://www.chefsteve.com/chocfoundry/html/order.html

I have put up the process.asp (which is in the same html directory) in text format if anyone wants to look at it.
http://www.chefsteve.com/chocfoundry/html/process.txt

You've all been just wonderful. Hope we can finally solve "the last leg" of this journey!

I really must go crash on the sofa for awhile! The ole back is objecting mightily and the head is marching to the beat of the tom-toms.

Sharon

On Monday, July 08, 2002 4:41 PM Marc Seyon wrote:

> Guys,
>
> I don't have time to go through this in detail, but I see lots of you on
> the case already. I'm throwing this out, hoping it might help solve the
> problem.
>
> Looking at these lines of code:
>
> function Order_Form_Validator(theForm)
> {
>
>    if (theForm.name.value == "")
>    {
>      alert("Please enter a value for the \"name\" field.");
>      theForm.name.focus();
>      return (false);
>     }
>      return (true);
> }
> //--></script>
> <form name="InfoOrderForm" action="process.asp" method="post"
> enctype="text/plain" onSubmit="return Order_Form_Validator(this)">
>
> Could it be that the validator is not returning the form values because
> it's being asked to look at theForm.name, when the name of the form is
> InfoOrderForm?
>
> regards.
> -marc
---------------------------------------------------------------------------
Sharon F. Malone
"web design and Internet writing services"
http://www.24caratdesign.com
sfmalo at 24caratdesign.com




More information about the thelist mailing list