Newbie to PHP
Posted: Sun Sep 12, 2010 5:15 pm
Greetings,
I'm definitely new to PHP. I am trying to do the following:
First I need to do a page which does the following predefined numbers.
$a = 35
$b = 10
$c = 17
$a times $c divided by $b equals..........
I have no idea what the "variables" (if that is the proper term is for what I need to define multiplication, division & equals.)
I have got this whopping far:
<?php
$A = '35';
$B = '10';
$C = '10';
echo "$var, $Var";
?>
Next I need to do a form where the user can enter their own set of numbers using the same math of user number x user number divided by user number= answer.
Any help with thess admitidely newbie question qould be greatly appreciated.
I'm definitely new to PHP. I am trying to do the following:
First I need to do a page which does the following predefined numbers.
$a = 35
$b = 10
$c = 17
$a times $c divided by $b equals..........
I have no idea what the "variables" (if that is the proper term is for what I need to define multiplication, division & equals.)
I have got this whopping far:
<?php
$A = '35';
$B = '10';
$C = '10';
echo "$var, $Var";
?>
Next I need to do a form where the user can enter their own set of numbers using the same math of user number x user number divided by user number= answer.
Any help with thess admitidely newbie question qould be greatly appreciated.