BluwAngel Posted February 7, 2012 Share Posted February 7, 2012 is there any option to have realtime like i have input box and typing inside, and next to that box it echo me same thing i input in real time Quote Link to comment https://forums.phpfreaks.com/topic/256618-realtime-script/ Share on other sites More sharing options...
kicken Posted February 7, 2012 Share Posted February 7, 2012 Once the Page has been generated and handed off to the browser for rendering, PHP is done. At that point anything you want to do either requires the use of javascript, or a page reload via clicking a link or submitting a form. So basically, no, you want javascript. Quote Link to comment https://forums.phpfreaks.com/topic/256618-realtime-script/#findComment-1315527 Share on other sites More sharing options...
GingerRobot Posted February 7, 2012 Share Posted February 7, 2012 You may want to look into Ajax if you're doing anything which requires interaction with something on the server (such as a database) Quote Link to comment https://forums.phpfreaks.com/topic/256618-realtime-script/#findComment-1315529 Share on other sites More sharing options...
The Little Guy Posted February 7, 2012 Share Posted February 7, 2012 The closest in php to real time is: - Command line/terminal (non-web) - Flash Sockets with javascript - Ajax Quote Link to comment https://forums.phpfreaks.com/topic/256618-realtime-script/#findComment-1315530 Share on other sites More sharing options...
BluwAngel Posted February 7, 2012 Author Share Posted February 7, 2012 how can i dropdown box, and next to it create text "Number you select is /number i select from dropdown box/" Quote Link to comment https://forums.phpfreaks.com/topic/256618-realtime-script/#findComment-1315533 Share on other sites More sharing options...
BluwAngel Posted February 7, 2012 Author Share Posted February 7, 2012 ps i did look for solution on ajax but its complicated and i dont understand that one tutorial i found is it possibleto generate code like this in php then i need to have 2 dropdown menus now i nee to seet if i choose value 7 in 1st box in second box needsto be generated one variable and if i choose any other number i generate from 0 to 59 Quote Link to comment https://forums.phpfreaks.com/topic/256618-realtime-script/#findComment-1315541 Share on other sites More sharing options...
haku Posted February 8, 2012 Share Posted February 8, 2012 You need to do this one of two ways: 1) Generate all possible secondary select lists on page load, and use javascript to only show the correct secondary select list. Good solution if there are only a small number of secondary select lists. If there are more, you need solution #2: 2) Use ajax to grab the data and create the secondary select list on the fly. #2 may be difficult, but you either have to figure it out, or do what the rest of the world does - hire someone who can do it. Quote Link to comment https://forums.phpfreaks.com/topic/256618-realtime-script/#findComment-1315648 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.