This topic is locked

After record updated redirect to single record

11/13/2008 7:19:19 PM
PHPRunner General questions
R
RobNYC author

I have a master table client tied to a detail table named income tied together by a PersonIDStr int(11) field

I have added

header("Location: client_list.php");

to the add field event.
What happens is that it returns to the client list

What i need is for the page to redirect to the specific master table record.
Suggestions?

J
Jane 11/14/2008

Hi,
here is a sample:

global $strTableName;

header("Location: client_list.php?a=search&value=1&SearchFor=".$_SESSION[$strTableName."_masterkey1"]."&SearchOption=Contains&SearchField=PersonIDStr");

exit();