Jump to content

Recommended Posts

Hi there, i'm having a bit of a problem fathoming the processing behind popups and auto refreshing. I have a dropdown where you would select a client, and if the client does not yet exist, you are shown a popup in which you enter the new clients details (and are then stored in a database), once that is completed, you return to the dropdown, and it is/ has been automatically updated, and thus you can select it. anyone who has done something similar please help by sharing your code or by providing an algorithm.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/104194-php-and-or-ajax/
Share on other sites

if you don't want to refresh the whole page then your need to look at ajax/javascript or frames, but for starters get it working with pure php,

 

the basics are

create a form with a drop down list,

then make that dropdown dynamic (build from a DB or flatfile)

then ajax it

 

this example may help. Dynamic DropDown PHP/AJAX

Link to comment
https://forums.phpfreaks.com/topic/104194-php-and-or-ajax/#findComment-533387
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.