How to set the app to load Add Page directly ?

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
sagmag
User
Posts: 182

How to set the app to load Add Page directly ?

Post by sagmag »

I have my default app that loads when user log in and for this app I don't need a list page nor update nor view, the only thing I need is Add Page. And What I really want is when the user log in my application must launch the Add Page to allow the user adding record directly and after Adding he must be redirected on the same page... In short the application purpuse is to add data only (no updating, no listing , no viewing). And also How can I change the Add button text from "Add" to "Send"?


kirondedshem
User
Posts: 642

Post by kirondedshem »

1.You can set your default to one of the list pages, then redirect to the add page, just put your code in page_redirecting event of your choosen, something like

// Page Redirecting event
function Page_Redirecting(&$url) {
// Example:
$url = "another_pageadd.php";
}

  1. You can also set your add page to be the start page in generate options->start page put another_pageadd.php. ALthough I would prefer the first solution as you might at somepoint need to redirect different people to different pages.

Post Reply