Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dynamic data?

Status
Not open for further replies.

ideasworking

Programmer
Dec 2, 2001
120
CA
Hello,

Is there anyway using PHP to have a calculated value updated on a page as a value is entered into a text box? What I want is basically three text boxes. A) Yesterdays value B) Todays value C) The difference.

I'm sure this can be done with java but I don't have a clue of how to write java... and I'm still new to PHP.

Thanks,
Lou
 
yes and no.

remember php is a server side process. it can not interact on its own with the desktop.

having said that you could use an intermediary, such as javascript (note that this is radically different to java), to interact with the server process (php) and display the result on the page. This could be done by AJAX or by causing javascript to submit the today and yesterday results in a form and using php to calculate the difference and display the result to the browser.

but for this you would probably not want to do this. Javascript can easily calculate the difference and display it for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top