This topic is locked
[SOLVED]

 Button redirect not working

10/20/2011 8:26:01 PM
PHPRunner General questions
N
notuo author

Hi again.
I put a button using the "insert button" in the Visual Editor
The Client Before has nothing and The server tab has this code at the end:

$foo = "http://domain.com/findereporte_edit.php?editid1="; . $keys["casosID"];

header("Location: $foo");

exit();


When I click on this button nothing happens but if I take a look with firebug I noticed http://domain.com/findereporte_edit.php?editid1=2 at the very end of the NET tab. The status is 200 OK but no display of this page.
If I type directly the same URL in the browser the correct page is there with the record #2.
Any idea?
Thanks in advance

C
cgphp 10/21/2011

In the Server section enter this code:

$result['CasosID'] = $keys['casosID'];



In the Client After section enter this code:

location.href = "http://domain.com/findereporte_edit.php?editid1="; + result['casosID'];
N
notuo author 10/21/2011



In the Server section enter this code:

$result['CasosID'] = $keys['casosID'];



In the Client After section enter this code:

location.href = "domain.com/findereporte_edit.php?editid1="'>http://domain.com/findereporte_edit.php?editid1="; + result['casosID'];



Crstian I modified a litte as this:

$result['site'] = "domain.com/findereporte_edit.php?editid1="; . $keys["casosID"];



and

location.href = result['site'];


This worked fine. The first one

location.href = "domain.com/findereporte_edit.php?editid1="'>http://domain.com/findereporte_edit.php?editid1="; + result['casosID'];


Gave me an undefined in the result['casosID']
Anyway, it's solved.
Thanks

C
cgphp 10/21/2011

The fixed version:
In the Server section enter this code:

$result['casosID'] = $keys['casosID'];


In the Client After section enter this code:

location.href = "http://domain.com/findereporte_edit.php?editid1="; + result['casosID'];
N
notuo author 10/21/2011



The fixed version:
In the Server section enter this code:

$result['casosID'] = $keys['casosID'];


In the Client After section enter this code:

location.href = "http://domain.com/findereporte_edit.php?editid1="; + result['casosID'];



Yes, I noticed the CasosID now.
Thanks for your help.