marcel
Posts: 26
|
| Posted: 10/18/2007, 8:43 AM |
|
I am working with CodeCharge for 2 years now and try to make applications with a minimum of coding (PHP, MySQL). Most things work very nice and deliver reliable, full-functional applications.
Now I made a grid form with a link control in one of the columns. I want to set a session variable (the value of a field in the row) just after clicking the link. That cannot be done with an event (only before show) so I put a button in the record row, with the onclick-event set to custom code and a redirect:
global $Redirect ;
$Redirect = “<URL> “;
The button is surrounded by
<form name="{HTMLFormName}" action="{Action}" method="post">
</form>.
Nothing happens when clicking on the link, even when I hardcode the URL in the custom code. After some tests I only can get a working redirect in a record form. Looked in the forum and found only answers working in record forms (e.g. Login).
So, how does one get a universal way to set session variables just after clicking links in grids? I want to use as minimum code as needed and not using parameters in the URL, which is an other solution to pass through variables.
|
 |
 |
|