This topic is locked

Show a Value on a Page

11/12/2007 7:52:31 PM
PHPRunner General questions
H
horsey_kim author

I have done this:
From a Master record that is added (cblue) using the AFTER recored Added I have the below code so that it will send the field (blueid) to a child detail list page for me to pick out items to go to that master record.
What I want to do is show the value of the blue id on the child page in a statement like SELECT LOTS for BLUE INVOICE # ??
Here is the code in the master add page:
$_SESSION["blueid"] = $keys["blueid"];
//** Redirect to another page ****

header("Location: pickblue_list.php?mastertable=cblue&masterkey1=$keys[blueid]");

exit();
How do I call out that value so it is visual on the child page in my statement I want.
I have tried {$keys} {$masterkey1}
I can see the value in the URL so I would think there be an easy way to have it show up in the page.
HELP - sorry to be such a pain
NEWBIE Kim <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=6802&image=1&table=forumtopics' class='bbc_emoticon' alt=':)' />

J
Jane 11/13/2007

Kim,
you can do it using custom event on the detail list page (Insert PHP code snippet option on the Visual Editor tab)

Here is a sample:

if ($_REQUEST["masterkey1"])

echo "SELECT LOTS for BLUE INVOICE # ".$_REQUEST["masterkey1"];

H
horsey_kim author 11/13/2007

SWEET! Thanks Jane - works great.