CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Adding choices to listbox via popup window -- what am I doing wrong?

Print topic Send  topic

Author Message
maggiemel

Posts: 75
Posted: 04/21/2006, 1:40 PM

Hello, Code Chargers! I have used successfully in many ASP apps this method I found here in the forums (an After Execute Insert event combined with a wonderful little piece of javascript) to add an item to a listbox on a record page without reloading the page and thereby losing data already entered. See: http://forums.codecharge.com/posts.php?post_id=55997

Now I'm trying to do the same thing with one of my PHP applications -- but I can't make it work! Specifically, the newly added key/value doesn't seem to be appending to the Redirect and the pop-up window doesn't close. The value is definitely being added to the Lookup table.

My After Execute Insert event code below:

global $ArtistsLookUp, $DBConnection1, $last_pk, $last_value, $Redirect;
$last_pk = mysql_insert_id();
$last_value = CCDLookUp("Artist", "ArtistsLookUp", "ArtistID=" . $last_pk, $DBConnection1);
$Redirect = $Redirect . "&last_pk=" . $last_pk & "&last_value=" . $last_value;

So I'm wondering: does the Redirect behave differently in PHP than it does in ASP? I've been wracking my brain over this for the last few days -- any help will be much appreciated.
_________________
Melissa Cahill
http://www.hellcatmaggie.net/
View profile  Send private message

Add new topic Subscribe to topic   


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

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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