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.

 

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.

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.