yes, you can popup a html form with target = _parent, like this:

First page:

<form>
<select name=xxx>
<option>1</option>
<option>2</option>
<?php
 session_start();
 if (isset($opt))
   $opts[] = $opt;
 session_register("opts");
 foreach ($opts as $opt)
   print "<option>".$opt."</option>";
?>
</select>
<a href=javascript:window.open....>add another opt</a>
</form>

Popup page:

<form .... target=_parent>
<input name=opt >
<input type=submit value="go">
</form>

this should be work, i write it very fast, i don't test it, but this is a
start point :)

-----------------------------
Federico
[EMAIL PROTECTED]
-----------------------------


Alexander Deruwe <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]
> Hewwo,
>
> When selecting a value from a combobox, I always have a link that allows
> adding a record to the table the combobox pulls it's data from. Here is my
> problem:
>
> Is it possible in any way to window.open() a popup window (JavaScript),
fill
> in a record, add it to the database (PHP) and then reload the caller page
so
> that the just added record appears in the combobox where the user can
select
> it for completing the file? Or add it to the combobox manually with
> JavaScript to avoid a reload?
>
> Alexander Deruwe.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to