This topic is locked

button to redirect to one php with parameters

5/22/2010 3:47:18 PM
PHPRunner General questions
M
manosint author

I want to add one button in each of a table row (List page). If the user clicks it I want to redirect to another php with one parameter with the key of the row clicked.
Also I want to add another button up the table rows (List page). If the user clicks it I want to redirect to another php with parameters the keys of the selected rows.
I added buttons with the default code (hello param). But when I click it does not appears the message with the command ctrl.setMessage(message);
Thank you

A
ann 5/24/2010

Hi,
unfortunately, you can't use the Custom button to perform an event for every row. To create this button use the HTML mode of the Visual Editor tab to make a button manually:

<input type=button value=button1 onclick="window.location.href='TableName.php?recordid={$custom_link}';">



Then proceed to the After record processed event on theEvents tab and add the code:

$record["custom_link"]=$data["FieldName"];