Jump to content

Event driven Programming in PHP


gajubhai

Recommended Posts

Dear All,

      I am from ASP.NET back ground and new to PHP. I just started learning the PHP  for my new assignment but I could not understand how to handle Postback. My PHP page has many controls which can do post back. Each control has to do different task on postback. It can be easily done using control's event in the ASP.NET but I wonder how can it be done in PHP.

    How to make PHP page such that it will execute different code on post back caused by differnt controls.

 

This might be fullish query but please help. Also anybody could suggest be good PHP book for this?

Link to comment
https://forums.phpfreaks.com/topic/201463-event-driven-programming-in-php/
Share on other sites

post back is round trip to the server for doing some task such as fetching the data from database based on user selection from combo box, adding data to database after pressing 'ADD' button on the server etc.

 

Actually in upper part of the form I want to fetch the data based on user selection from combobox. After fetching the data, I want to write a report in text box based on the fetched data and then again want to save it database.

Now in this case two post backs are required.

1.to fetch the data

2. To add new data.

 

how can it be done?

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.