Refresh without reset form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
richie256
Forum Commoner
Posts: 37
Joined: Mon Oct 13, 2003 8:00 pm
Location: Montréal/Canada

Refresh without reset form

Post by richie256 »

Hi

I want to display all the city from a MySQL Database in a combo-box and put a "Add" link that open a new sub-window to be able to add a new city in the database. When all of the informations are correctly enteted in the sub-window, it close and send back the information to the main window.

So my question is this one: I really don't know how to send back the information to the main window and refresh the combo-box without reset the form? If someone can help me to get me in the right way, it will be a pleasure.

Thanks.
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

You can't as far as I know.

You can recall the database, and put in it's default values, but you need the server to send the information. But you can store the info in for example a session, that you can later use when going back to the old page.

Perhaps a javascript guru can make this happen with an inputbox script, but that is beyond me.
User avatar
richie256
Forum Commoner
Posts: 37
Joined: Mon Oct 13, 2003 8:00 pm
Location: Montréal/Canada

Post by richie256 »

I remember I already see it in one webpage... can't remember on wich page :?

Hope I can find it back
Post Reply