Custom save php file

QuestionsCustom save php file
Miroslav S. asked 2 years ago

Hello,

is possible to redirect all save actions to my own different file?

Thanks for reply.

1 Answers
Abu Ghufran answered 2 years ago

We don't have any working demo of it, but if you change editurl property, the ajax call of edit will post data to your url.
On your page, you can print_r() the $_GET, $_POST and perform your desired working.
e.g.
$opt["editurl"] = "http://……………";
$g->set_options($opt);

Alec Clarke replied 1 year ago

I have made the suggested change (code shown below), but my file is never called. Any suggestions? Thanks

$grid = new jqgrid($db_conf);
$opt = array();
$opt[“caption”] = “Sponsors”;
$opt[“toolbar”] = “top”;
$opt[“height”] = “”;
$opt[“autowidth”] = true; // expand grid to screen width
$opt[“editurl”] = “save_sponsor.php”;
$grid->set_options($opt);

Your Answer

1 + 17 =

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!