Home

   Home

   Download


Help

   FAQ

   Installation

   Message Board

   Importing Data File
   Into GoldMine
   Into Act

   Readme Files
   V1.5,  V1.9,  V2.0

   Related Scripts


Other

   Testimonies

   Donate

   Advertising Info

   Inspirational E-mail's

   Custom Programming


Related Scripts

Novice Form Processor
  In Perl/CGI
  In PHP
BMF in PHP
  Form To File

































 




A R C H I V E D     M E S S A G E

  Subject: disabling a form element and submit doesn't generate email
  Posted: 03/30/2004 at 7:45:46 pm
  By: siliegoose

Hi,

I am trying to allow a user to fill a form anonymously. When the user, clicks the checkmark box the email text box disables and I see the confirm screen but no email is generated.
Java Script:
function codename() {
if document.Subscribe.anonymousCheck.checked) { document.Subscribe.email.disabled=true;
}
else {document.Subscribe.email.disabled=false;}

HTML:
<input type="checkbox" name="anonymousCheck" value="anonymous" onclick="codename()">

<input type="text" maxlength="255" name="email" size="30" value="@smith.com">

I am expecting that the email will generate and provide some sort of output such as the following:
anonymousCheck: anonymous
email:

When I don't invoke the codename(), the email generates and gives output as I expect.
<input type="checkbox" name="anonymousCheck" value="anonymous">

<input type="text" maxlength="255" name="email" size="30" value="@smith.com">

Could you help me out? Thanks alot.



  Subject: Re: disabling a form element and submit doesn't generate email
  Posted: 03/30/2004 at 8:46:16 pm
  By: Seth Knorr

When you "disable" a field in a form, it IGNORS IT, as if it does not exist. That is the whole purpose of the function.

So yes, they can see the field, but it does not function in any way.

Seth



  Subject: Re: disabling a form element and submit doesn't generate email
  Posted: 03/30/2004 at 9:17:48 pm
  By: siliegoose

Hi,

Yes, when disabling only the text box, I would expect the text box to be disabled and not show the name/value pair but shouldn't the checkbox name and value still be passed via email since the user selected it? Right now I'm not receiving any emails even when other form elements have been filled in on the form.

When I remove the codename() function, the email is properly generated with the name value pairs.

Don't know why disabling one textbox would cause the other form elements not to be passed and generate an email?



  Subject: Re: disabling a form element and submit doesn't generate email
  Posted: 03/31/2004 at 6:15:03 am
  By: siliegoose

Post the URL to where the form is located at, and I will tell you exactly what the problem is.

But right off hand. AS STATED ABOVE, IF YOU DISABLE A FIELD, IN WHICH YOU ARE DISABLING THE name="email" FIELD, THIS FIELD WILL SHOW TEXT BUT WILL, NOT ACTUALY POST AS A FIELD. THAT IS THE WHOLE REASON FOR disable.

The reason why it is probably not working is that you need the results from the name="email" for the reply email, and it is also the from email for the results email. so you may be getting an error page saying the email field was not filled in.

IT IS REALY SIMPLE TO FIX. DON'T USE THE disable FEATURE. IT DOES ABSOLUTLY NOTHING FOR YOU, THERE IS NO ADVANTAGE TO IT, ALL IT DOES IS MAKE IT ACT AS IF THE FORM FIELD DOES NOT EXIST AT ALL, WHICH IN ESSENCE DEFEATS THE WHOLE PURPOSE OF HAVING THE FIELD IN THE FIRST PLACE!!!!!


Seth





Copyright 2000-2004 Seth M. Knorr,
BizMailForm.com Forms Processor, All Rights Reserved






Heart House Community Church, Clermont FL