I'm wondering if someone can do me an enormous favour and write a cgi for me please, I just can't get my head around the books I have, they might just as well be written in Klingon.

I would like to be able to enter a number into a form. (eg 1234)
This number would also be output to result.html which I will get to in a minute.

So, taking the input (x), it needs to be compared against a fixed sum (z). (eg z = 25) If x is greater than z, then value z needs to keep being subtracted until equal to or less than z. (but not less than 1) (if input is a 6 digit number, another sum, say 2000, can be included to calc a bit faster than subtracting 25 over and over)

I have a string of numbers or letters that is z (25) in length, presently in a text file, but there is no reason why this string can't reside in the script as it will never change. The end result of comparing x to z = 9, so 9th char in string z is to be picked up. I wish to print using if statements so that I could have slight differences in the html of result.html to count for the 25 different possibilities of z.
The original input needs to be reflected in any instance of result.html.
Hopefully without any of the code being viewable with the exception of the html code.

I know it's a big ask, but I would really appreciate it.
Thanks
Brian

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to