Jump to content

[SOLVED] Newbie Help - displaying text after changes on the page


johng

Recommended Posts

I am quite a newbie to php, so in addition to not knowing how to do this, I also am kind of stuck on how to go about looking for the answers.

 

I am working on a page where people will enter data and it will go into a database.  I would like it to have some dynamic displays to it, in particular, I would like it to total some numbers entered into text boxes and display the total when the user tabs out or clicks outside of the text box.  Essentially it would calculate and display the sum of the numbers entered by the user.

 

I have searched for something that will do this (like onblur), but I haven't really found anything with examples that I could use.  The only thing that I have found is code to clear the input fields, and when I tried to retrofit it for my purposes, it either spit out an error, or it just wouldn't do anything. 

 

I'm not even sure if this is possible with php, but I think I could also possibly use javascript (maybe?).

 

Any help with this problem would be much appreciated, even just a point in the right direction. 

 

Another question I had was what is a good book for php?  Currently I have the "PHP Black Book," but I'm not sure about it yet.  (In addition, a JavaScript book would probably also be good to have)

 

Thank you in advance.

 

-John

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.