I have a master orders table. I want to to do that when i add a master record, then after add i want to go to detail record.
For Example:$this->terminate(“saleinv2detaillist.php?showmaster=saleinv2head&fk_orders_id='”.$rsnew[‘orders_id’].“'”);But it is not working accurately, the return url is reflecting as :
h t t p : / / localhost/pos2/saleinv2detaillist.php?showmaster=saleinv2head&fk_orders_id=%27114%27
instead of:
h t t p :// localhost/pos2/saleinv2detaillist.php?showmaster=saleinv2head&fk_orders_id=114Please advise
You may see the topic Table Setup > Return Pages in the help file, there is an example.
No need to enclose the param value by using single quote if you want to display it in URL. So, simply change your code to:$this->terminate(“saleinv2detaillist.php?showmaster=saleinv2head&fk_orders_id=”.$rsnew[‘orders_id’]);