This topic is locked
[SOLVED]

 Disable Display All In A List ?

1/29/2013 5:46:09 AM
PHPRunner General questions
N
netmedia59 author

Hello,
Is there a way to disable in PHPR 6.2 :

BadgesSearch_list.php?a=return

and

BadgesSearch_list.php?a=showall

in a List

So, in that two cases, I want to redirect to BadgesSearch_list.php or menu.php
Thanks
Olivier

Lille (FRANCE)

C
cgphp 1/29/2013

Put the following code in the "List page: before process" event of the BadgesSearch table:

if(isset($_GET['a']) && ($_GET['a'] == 'return' || $_GET['a'] == 'showall'))

{

header('Location: menu.php');

exit();

}
N
netmedia59 author 1/30/2013

Thank You Cristian

It works as exepected !
Olivier