Custom save php file

QuestionsCustom save php file
Miroslav S. asked 8 years ago

Hello,

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

Thanks for reply.

1 Answers
Abu Ghufran answered 8 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 7 years 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

17 + 10 =

Login with your Social Id:

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 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

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

Let us improve this post!

Tell us how we can improve this post?