Greetings. I am looking for a code that can take the input of a number in a input box then after clicking on submit php takes that input calculates it with a already predefined equation then show output of answer and update both the input box and output into a database. I am very new still at all this I do understand just cant figure how to write it. If you would like to see a website that is similar to what I am looking for go to this site is the closet that i can find that is close to what im looking for after you enter say 2 in the box for quantity then click on submit you are redirected to another page showing how much the 2 coins are worth however instead of going to another page would like to refresh same page with the answer as well as putting the quantity and answer into a database. Please help post the code or email it to me. or even point me to a page with the code.