Hi again .

I am attempting to do some calculations with variables. I'll bet this is a very simple task, I just don't know how to make it happen.

I have the following listed in my links.def file:

ReviewContentRt => [17, 'numer', 10, 10, 1, 0, '^\d+$'],

ReviewNav => [18, 'alpha', '40x3', 500, 0, '', ''],

ReviewNavRt => [19, 'numer', 10, 10, 1, 0, '^\d+$'],

ReviewDesign => [20, 'alpha', '40x3', 500, 0, '', ''],

ReviewDesignRt => [21, 'numer', 10, 10, 1, 0, '^\d+$'],This is a part of my review mod. The variables ReviewDesignRt, ReviewNavRt and ReviewContentRt contain the numerical rating from 1 to 10, while the other 3 variables contain the actual review text.

I wish to create an overall summary with the numerical variables. The math should look like this:

reviewsummary = ((ReviewDesignRt + ReviewNavRt + ReviewContentRt) / 3) * 10

My goal is to call this summary via a tag in my details page like this:

Review Summary: <%reviewsummary%>

If you would like to take a look at what I am working on, go here: http://genweb.net/...pages/Detailed/5.htm . Where you see the 0 behind "Overall Score", the summarized result should appear.

Thanks for you help guys, you are great!

Mike

I am attempting to do some calculations with variables. I'll bet this is a very simple task, I just don't know how to make it happen.

I have the following listed in my links.def file:

Code:

ReviewContent => [16, 'alpha', '40x3', 500, 0, '', ''], ReviewContentRt => [17, 'numer', 10, 10, 1, 0, '^\d+$'],

ReviewNav => [18, 'alpha', '40x3', 500, 0, '', ''],

ReviewNavRt => [19, 'numer', 10, 10, 1, 0, '^\d+$'],

ReviewDesign => [20, 'alpha', '40x3', 500, 0, '', ''],

ReviewDesignRt => [21, 'numer', 10, 10, 1, 0, '^\d+$'],

I wish to create an overall summary with the numerical variables. The math should look like this:

reviewsummary = ((ReviewDesignRt + ReviewNavRt + ReviewContentRt) / 3) * 10

My goal is to call this summary via a tag in my details page like this:

Review Summary: <%reviewsummary%>

If you would like to take a look at what I am working on, go here: http://genweb.net/...pages/Detailed/5.htm . Where you see the 0 behind "Overall Score", the summarized result should appear.

Thanks for you help guys, you are great!

Mike