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: Help with mail script coding
  Posted: 04/14/2004 at 8:24:19 am
  By: erpjane

I'm just new at doing scripting and I just need help doing this script for the mail script.

the field name is called 'example'

How do I put like:

if the field 'example' doesn't haven't anything typed in
print Mail "You did not signup for...etc";
but if it does
print Mail "You have used $FORM{'example'}...etc";


What's the propper coding to code the statement above.

Thank you

- Jane



  Subject: Re: Help with mail script coding
  Posted: 04/14/2004 at 8:45:44 am
  By: Seth Knorr

The statment would be an if statement.

firstly, in this script all posted variables come are equal to
$formdata{'name'}
WITH: name BEING THE FIELD NAME="" VALUE

So, You could use this:

## FIRST CHECK TO SEE IF ##
## $formdata{'example'} has a value ##
## it would only have a value if it ##
## was filled in ##

if (! $formdata{'example'}) {
## BELOW WILL PRINT IF NO VALUE ##
print Mail "You did not signup for...etc";
}else{
## BELOW WILL PRINT IF VALUE EXISTS ##
print Mail "You have used $formdata{'example'} etc";
}



... Side note however. There is a feature in BIZ MAIL FORM that allows you to select whether or not to print blank fields in the email.

The setting is:

## TO EXCLUDE BLANK ENTRIES ##
$PRNT_blankfields = "2";

## TO INCLUDE BLANK ENTRIES ##
## THIS IS THE SCRIPTS DEFAULT VALUE ##
$PRNT_blankfields = "1";

This is explained further in the readme file.

Seth



  Subject: Re: Help with mail script coding
  Posted: 04/14/2004 at 8:55:39 am
  By: erpjane

Thank you it worked :) :)

- Jane



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