|
I am trying to learn php and have been going crazy trying to find a solution to what I need to do. I have been googling this and looking at php.net and just can't find what my problem is.
I have to submit a form to a database with name, address and all of the normal things, no problem, I have that part done and works fine.
I would like to have the data the party entered in a new form on a page and then do the following:
Take one field and multiply that by a number, then add that total to another field to get a grand total. I thought that I could get the required fields by using the $_POST array by using:
value= <?php echo $_POST["fname"]?> in the new from field but that is not working. Is this possible?
After the new form is populated a new field will show the grand total by using the values from the array. Am I approaching this correctly? Any suggestions?
Any help or kick in the right direction will be apprectiated.
__________________
Every artist was first an amateur.
Ralph Waldo Emerson
|