This topic is locked

hyperlink to jump to different edit page

5/6/2007 4:31:44 AM
PHPRunner General questions
K
kenmag author

I am using PHPRunner 3.1 (218).
How can I create a hyperlink (or button on the page) that can take me directly to the "Edit" page of another table? I want to do this instead of choosing the list page and then the record.
I have a situation where users enter the data for a rows in a child table BEFORE the row in the parent table exists. To make this work, in the "Before Record Added" event of the child table, I insert the parent row before the first child row is added, then all child rows entered after that are associated with that parent. When the user is done entering all the child rows, I want to then be able to jump directly over to the associated parent "edit" page and complete some information there.
Below is some of my HTML to produce the hyperlink. How can I get the value I need here.
<A href="http://www.regut.com/test4/Account_edit.php?editid1={THIS IS THE VALUE I NEED}"
Any indeas would be appreciated...
Thanks

Sergey Kornilov admin 5/7/2007

When you add a Master record in BeforeAdd event get this record ID and save it Session variable like $_SESSION["MasterID"]
After that you can use the following:

echo "<A href='http://www.regut.com/test4/Account_edit.php?editid1="; . $_SESSION["MasterID"] . "'>Master table</a>"
K
kenmag author 5/7/2007

When you add a Master record in BeforeAdd event get this record ID and save it Session variable like $_SESSION["MasterID"]

After that you can use the following:

echo "<A href='http://www.regut.com/test4/Account_edit.php?editid1="; . $_SESSION["MasterID"] . "'>Master table</a>"


Thanks, I'll give it a try. I was trying to use a session var. and it didn't work...but I was using the syntax of ....editid1={$_SESSION["MasterID"] } and not the syntax you specify.