Message Board

   Importing Data File
   Into GoldMine
   Into Act



   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: Calculations script
  Posted: 04/16/2004 at 4:28:26 am
  By: erpjane

Hi again,

I'm trying to do some calculations from a form. I'm doing some points for users e.g.

From the html form i put

Pointlimit: "pointlimit"
pointused: "point used"

where "" is the field

in the cgi script how would i put

$point total = pointlimit - pointused?

Thank you

  Subject: Re: Calculations script
  Posted: 04/16/2004 at 6:12:19 am
  By: Seth Knorr

The exact way to do it would be thus:

in the Biz Mail Form scripting all posted variables equal: $formdata{'name'}
with: name
being the name="" of the form field

So to caculate it would be:


The scalar variables like: $point_total
can not contain spaces or you will get an internal server error.
so: $point total
for instance would not work...


  Subject: Re: Calculations script
  Posted: 04/16/2004 at 7:22:41 am
  By: erpjane

ah thx, i put spaces by mistake and got in a test mail 0 at the end of it.

  Subject: Re: Calculations script
  Posted: 07/20/2004 at 12:42:30 pm
  By: mlbailey

I'm trying to perform a similar function, and I think I understand the variables...I'm just not sure exactly which page I need to type them into. For example, I'll be needing to add
Would this need to be typed into the bizmail.cgi form? Or am I way off?

Thanks for any help! :-)
Michelle Bailey

  Subject: Re: Calculations script
  Posted: 07/20/2004 at 2:12:58 pm
  By: Seth Knorr

Yes, you can run that calculation, however you need to stick that code below:

sub main {

IN bizmail.cgi

Of course from there you would have to put that field in the other parts of the script where you want it to work, or be emailed to you.


P.S. I also added this to your other post.

Reply To This Topic

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