This topic is locked

inline edit

4/1/2008 8:33:03 AM
PHPRunner General questions
G
garethp authorDevClub member

Hi, some help needed i am afraid...
I have an "AFTER RECORD UPDATED" event to redirect back to the main list page rather then stay on the edit page using the following code.

header("Location: bank_codes_list.php");

exit();


This works fine but means if you try and do an inline edit an error occurs when you click the green tick.
I need to have both edit and inline edit but also the redirect is essential.
Can you offer and help to overcome this to avoid the error.
many thanks for the great support.
GarethP

L
laonian 4/1/2008

garethp,
You may try:
[codebox]if (!$inline)

{

header("Location: bank_codes_list.php");

exit();

}[/codebox]
I haven't tested it so no guaranty.

G
garethp authorDevClub member 4/2/2008

Fantastic - works like a dream.
Thanks so much for taking the time to answser.
Take care