Home

   Home

   Download


Help

   FAQ

   Installation

   Message Board

   Importing Data File
   Into GoldMine
   Into Act


Other

   Testimonies

   Custom Programming

   PHP Version


Other Favorites

   Hire a clean comedian

   Bible Search Engine

   Bible in a Year

   Parallel Bible

   The Richer Life










 





[ Message Board Home ]    [ Post Reply ]    [ Log In ]    [ Sign Up ]



  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?



Reply To This Topic

Subject
Message  
Username
Password
Due to unrelated post's, you must have an
account to post a message. To Sign Up click here.




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