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/ |
 |
 |
|