If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Need some help.

In a nutshell I am brand spanking new to this language. I have designed a few websites and I am fairly good at it. I have always managed to find a way around using PHP, java, and stuff like that. I have a site that uses PHP but I had nothing to do with the code and had a heck of a time installing it. Anywasys bottom line is I am wet, errr soaked behind the ears when it come to PHP and other scripts and I want to learn now. I am actually reading PHP for Dummies, and will continue on from there. Anyhow the next site I am building requires a script that works similar to this site, the function I am interested in is the use of the radial buttons and the way it tallies the price.

A group of radio buttons with the same name are available in your PHP script as an array. If you don't understand how to access form data yet, or what an array is, then aye, you've got a way to go before doing that.

Let's break down the above script:
first line: "$" always starts before defining a variable, which in this case it's contents is checkbox1's value.
Line two is the same except your defining the second checkbox.
Line four processes the information, adding $field1 and $field2.
Line five is a simple statement "echo" which writes the variable $output.
The outcome should be "60"

Thanks but I now know I need to do some reading before I ask to many more questions because I am just wasting your time if I don't understand your answer. At least this is here for when I do understand.