Why not just use some javascript to put the new value right into the
drop down, provided the db query went thru sucessfully, this shouldnt
be an issue right.  on the popup window, after you insert the new
record, get the last inserted id, use php then to generate some JS
that will push that new record onto the drop down list in the parent
window, also, for usability, make this new record the selectedIndex as
well.

Jason

On Thu, 22 Jul 2004 18:11:21 -0400, Vern <[EMAIL PROTECTED]> wrote:
> I have a page where a user comes to the page and submits a form after
> filling it out with dropdown menus that are dynamically driven and get their
> info form out tables.
> 
> Now there are times when some one needs to add to this drop down list so I
> have a separate page open up that allows the user to add the needed item
> which after inserting sends them to a page that has the success message
> along with a Close Window Link that refreshes the page below it (using
> javascript:window.opener.location.reload();window.close();) so that the new
> item is display in the drop down list. So far so good.
> 
> However, many users fill parts of the form out before they realize that one
> of the menus do not have the info needed. I thought that adding
> 
>     title="<?php echo $_POST['form_field']; ?>"
> 
> would cause the values of the field already filled out to be displayed again
> as the page is being refreshed, but they are not.so I guess refresh is not
> the same as POST, which of course we don't want to happen as it will POST
> the form which is not what we are trying to do. Anyone have any ideas?
> 
> Thanks
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to