This topic is locked
[SOLVED]

 Add an Edit button to another page

8/13/2010 9:19:15 AM
PHPRunner General questions
K
kkiboo author

I'm trying to add an Edit button on the View page. When I copy/paste the controls via HTML (I make sure to include all the tags), the button won't show up after I built the project. Anything special I am missing?

K
kkiboo author 8/16/2010

^^?

J
Jane 8/17/2010

Hi,
unfortunately simple coping won't work.

You can create this button using custom event (Insert PHP code snippet option on the Visual Editor tab). Here is a sample:

if (@$_REQUEST["editid1"])

echo "<input type=button class=button value=Edit onclick=\"window.location.href='tablename_edit.php?editid1=".$_REQUEST["editid1"]."';\">";
E
electromotive 8/18/2010



Hi,
unfortunately simple coping won't work.

You can create this button using custom event (Insert PHP code snippet option on the Visual Editor tab). Here is a sample:

if (@$_REQUEST["editid1"])

echo "<input type=button class=button value=Edit onclick=\"window.location.href='tablename_edit.php?editid1=".$_REQUEST["editid1"]."';\">";



This works great !!