CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Populating record listbox from a subwindow

Print topic Send  topic

Author Message
wana
Posted: 04/26/2002, 8:43 PM

I have a question related to one of the article "Populating record listbox from a subwindow". May I know how could I do the same effect in PHP?
Nicole
Posted: 04/29/2002, 5:03 AM

Hello,
the most code is created with JavaScript that it the same both languages (ASP and PHP). And here is a part of PHP code:

This PHP code in NewCategory page/"After Insert" event gets last inserted record id and passes record id and record name to the next script.
This data are to be used by javascript on the next page to add
a new item into listbox of parent window.

$pkSQL = "select max(category_id) as lastpk from categories";
$db->query($pkSQL);
$last = $db->f("lastpk");
$last_value = dLookUp("categories", "name", "category_id=". $last );
$sActionFileName .= "?last_pk=". $last . "&last_value=". $last_value;

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.