This topic is locked
[SOLVED]

 get value from url on inline add

6/27/2012 7:22:17 PM
PHPRunner General questions
S
stiven author

Hello,
on the add page I used to get the value from the url to fill two fields on the table like this:



$case_no = $_GET['c'];

$name = $_GET['n'];
$values['case_no'] = $case_no;

$values['deceased_name'] = $name;


I would place this code on the process records values event page, and it works on the add page but it does not work when it is inline add, is the a solution to this or another way to do this?
Thanks

Sergey Kornilov admin 6/29/2012

Do you add additional parameters to the Add page URL or to the List page URL? How it works?

S
stiven author 7/2/2012



Do you add additional parameters to the Add page URL or to the List page URL? How it works?


Yes I do this is a sample URL "alert_list.php?c=2012227&n=ZULUE%20CLEOTIDE%20MENDEZ" i tried to get the 'c' and 'n' for the inline add but it didn't work.
I had to use the add page instead of the inline add so its working now.
Thanks

Sergey Kornilov admin 7/3/2012

As a general word of advise - add the following code the List page BeforeProcess event:

$_SESSION["c"]=$_GET["c"]


Then you can use $_SESSION["c"] variable everywhere.

S
stiven author 7/3/2012

Thanks so much for the advise it really helps <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=66910&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />