php75 Posted December 8, 2016 Share Posted December 8, 2016 (edited) Hi, By using PHP i want to display numbers automatically once i enter the numbers in textbox/number/time without click submit button.How can i do it? Edited December 8, 2016 by php75 Quote Link to comment Share on other sites More sharing options...
kicken Posted December 8, 2016 Share Posted December 8, 2016 Making changes to a page without a refresh requires Javascript not PHP. What exactly do you want to do? Display numbers where? Quote Link to comment Share on other sites More sharing options...
php75 Posted December 8, 2016 Author Share Posted December 8, 2016 In Text area box i want to do this...If possible give me a code Quote Link to comment Share on other sites More sharing options...
cyberRobot Posted December 8, 2016 Share Posted December 8, 2016 You will need to provide more information. Are you trying to pre-populate a form? So that way a form field has a default value before the user does anything? Or is the user doing something with the form / page that results in you inserting a value into a form field? If it's the latter, you will need to use JavaScript as kicken mentioned. Quote Link to comment Share on other sites More sharing options...
php75 Posted December 9, 2016 Author Share Posted December 9, 2016 thank you for your reply..Just i want to learn about it...For example By using Arithmetic operators If i type some numbers with or without decimal values in html text box then without clicking automatically displays some values in table content.This is my doubt...If possible give me a source code with explanation.... Quote Link to comment Share on other sites More sharing options...
Jacques1 Posted December 9, 2016 Share Posted December 9, 2016 If you want to learn, you need to actually start programming. You know, writing your own code with your own hands. As the others have already said, your task cannot be solved with PHP. It's a JavaScript problem (of course you could combine the two, but this makes no sense in your case). So do you want us to move this to the JavaScript section, or do you want to rephrase the question? For example, you can do it with PHP if the calculation happens after you've submitted the form. In any case, start writing code and solving your own problems. Of course we can help you with specific(!) questions, but don't just ask us to do the work for you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.