[SOLVED] Button to call another script outside phprunner |
12/5/2011 10:01:28 AM |
PHPRunner General questions | |
N
notuo author
Hi. header("Location: http://domain.com/pdf/index.php?c=".$keys["ID"]);
|
|
N
|
notuo author 12/5/2011 |
Hi. I need to add a button in a page (already did this)as follows: I have another script I build producing a PDF from parameters I pass via GET This script produces the formatted pdf (tested and working) The button should call this script with the ID for the record The script produces the PDF and then returns to the original screen My code so far is header("Location: http://domain.com/pdf/index.php?c=".$keys["ID"]);
|
L
|
larryk 1/5/2012 |
can some one fill in the details that I'm missing? |
T
|
Tricause 1/5/2012 |
can some one fill in the details that I'm missing? I realize this is already very simple... but I'm missing it. if someone could give step by step... and add the little pieces of missing info... i would be very grateful! thanks
$result['url'] = "some_path.php?var1=".$var1; on the server side of the button and then in the "client after" side of the button use location.href = result['url']; , it should redirect to the URL you want. |
L
|
larryk 1/5/2012 |
thanks Jake!
|
C
|
cgphp 1/5/2012 |
Try to dump the result. ctrl.setEnabled();
$result["txt"] = $params["txt"].$keys[0]["ID"];
alert(result['txt']);
|
L
|
larryk 1/5/2012 |
wow... this is just crazy... there is something not right... something small that i've missed... // Put your code here.
$result["txt"] = $params["txt"]. $keys[1]["ID1"] ;
// Put your code here.
|
L
|
larryk 1/5/2012 |
you can look on the demo account, on the customer tab (list view) |
![]() |
Admin 1/5/2012 |
Since your key column name is customer_ID here is the code you need to use: $result["txt"] = $params["txt"].$keys[0]["customer_ID"];
|
L
|
larryk 1/6/2012 |
i don't believe it <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=63465&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' /> |