Need Help!!!!!!!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ozulloa
Forum Newbie
Posts: 5
Joined: Fri Aug 14, 2009 9:18 am

Need Help!!!!!!!

Post by ozulloa »

Hi All
Im a rookie with php and I need help. I need to make a form that will allow me to enter 2 ramdom :roll: numbers: a and b, and will count and print the numbers within that range in a table , it has to also calculate each number's exponentiation to 2(square) and 3 (cube)

sample: If I choose numbers 4 and 7, it should display:

Number Square Cube
4 16 64
5 25 125
6 36 216
7 49 343



Can anyone help?
webmonkey88
Forum Newbie
Posts: 20
Joined: Fri Aug 14, 2009 4:30 am

Re: Need Help!!!!!!!

Post by webmonkey88 »

you will just need to create a form with two input fields then on the page you post the form to you will need a for() loop which within youl insert the values into the table.

If you start creating the form and have a go at the for() loop, see how you get on.


A good place to learn is w3schools
Post Reply