Jump to content

php calling ajax, ajax calling php and the second php sending selection back


kwstephenchan

Recommended Posts

Hi all,

 

I am new to Ajax. just wonder if the following can be implemented using Ajax:

The first PHP calls ajax and ajax call another php. User then picks a selection (with html and user interaction) and the selection is sent back to the first php via ajax without reloading the first page and losing everything that the user has entered.

 

I have tried php calling ajax and ajax calls another php and returns a value back to the first php. It works. The difference is that this second php does not have a user interface, it is just searchiing database for value.

 

If this cannot be implemented, I might as well give up on this approach.

 

Please advise.

 

Thanks.

 

Link to comment
Share on other sites

you can do this but little modification in the approach

 

1.initiate AJAX request

2. based on ajax request parameter process the second file and send the output to first file now dynamically modify your first file so that user can select and on selection create a new request.

 

 

i hope i make sense please be more specific so that i can explain well with your requirements.

Link to comment
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.