Jump to content

realtime script


BluwAngel

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/256618-realtime-script/#findComment-1315527
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/256618-realtime-script/#findComment-1315541
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/256618-realtime-script/#findComment-1315648
Share on other sites

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.