Alternative page for ' after deleting, go to:

Hello!

Got a dynamic list of PHP page that lists the records from two tables in the MySql database, the tables got a column named "gk", which makes them different from each other. In a single table gk is allways 'ÖGK' and in the other table gk allways "PGA".

Now, there are a number of buttons that links to insert, update, and delete pages in the list page. These pages are duplicated for each of the two tables, for example, there is a record page to delete a record in the table with OGK in the column of gk (delete_user.php) and another delete a registration page in the table with the PGA in the column of gk (delete_user_pga.php). In fact there are two pages of lilies at, a list_users.php mentioned above, this is the page from the main list with the problem. And a list_users_pga.php that lists only the records from the table on the PGA TOUR, no problem here.

I got this job up to now that I get to the right page to delete record (the one that removes the table corect OGK or PGA), and the record will be deleted whith this home grown code:

input name = "Button2" type = "button" class = "miniknapp" onclick = "MM_goToURL ('parent',' <?)" PHP if ($row_listUsers ['gk'] == "ÖGK") {echo "delete_user.php" ;} elseif ($row_listUsers ['gk'] == 'PGA') {echo 'delete_user_pga.php' ;} else {echo ' ' ;}?}}} >? ID = <? PHP echo $row_listUsers ['id'];? (> '); return document. MM_returnValue' value = 'delete '.

There is no problem if I list the page main going to a page, the deletion or update a record in the table OGK couse he follows the link "after deletion, go to" who is specified in the record dialoge to remove. No problem if I go to a page deletion or update of the 'list only PGA records' for the same reason.

But if I'm deleting a record from the table of the PGA it erase the file correctly but the redirect to the page of list of PGA. as it is supposed to do if you got to the list_users_pga.php page. BUT if you got there from the list main page list_users.php I want to be redirected to this page where I came from. Takes it place the problem even if I have to cancel the delete (cancel script of the book of David Powers 'The Essential Guide to Dreamweaver CS4... Hello David)

Well, tried it with a lot of pudding House armed code without success:

<? PHP

If ($row_getUsers ['gk'] == 'ÖGK') {/ / show if gk = ÖGK}


? >
<? PHP

If (array_key_exists ('Cancel', $_POST)) {}
Header ('Location:
http://teeview.se/analys_kund/list_users.php');
"exit";
}
If ((isset($_POST['id'])) & & ($_POST ['id']! = "")) {}
$deleteSQL = sprintf ("DELETE from analys_kund_pga WHERE id = %s",
GetSQLValueString ($_POST ['id'], "int"));

@mysql_select_db ($database_connect, $connect);
$Result1 = mysql_query ($deleteSQL, $connect) or die (mysql_error ());

$deleteGoTo = "list_users.php";
If (isset {}
$deleteGoTo. = (strpos ($deleteGoTo, '?'))? « & » : « ? » ;
$deleteGoTo. = $_SERVER ['QUERY_STRING'];
}
header (sprintf ("location: %s", $deleteGoTo));
}
? >
<? PHP} / / end of show if gk = OGK? >


<? PHP

If ($row_getUsers ["gk"] == "PGA") {/ / show if gk = PGA}


? >
<? PHP

If (array_key_exists ('Cancel', $_POST)) {}
Header ('Location:
http://teeview.se/analys_kund/list_users_pga.php');
"exit";
}

If ((isset($_POST['id'])) & & ($_POST ['id']! = "")) {}
$deleteSQL = sprintf ("DELETE from analys_kund_pga WHERE id = %s",
GetSQLValueString ($_POST ['id'], "int"));

@mysql_select_db ($database_connect, $connect);
$Result1 = mysql_query ($deleteSQL, $connect) or die (mysql_error ());

$deleteGoTo = "list_users_pga.php";
If (isset {}
$deleteGoTo. = (strpos ($deleteGoTo, '?'))? « & » : « ? » ;
$deleteGoTo. = $_SERVER ['QUERY_STRING'];
}
header (sprintf ("location: %s", $deleteGoTo));
}
? >
<? PHP} / / end of show if gk = PGA? >

Of course, the same will of scenario happens I register and uppdate pages, but the solution will be also the same I guess

Too many question marks, maybe?

Yes, you can have only one point mark in a URL. He created what is called the query string, which must contain all the variables. Separate the variables with an ampersand:

delete_user_pga.php?id=21&returnPage=list_users

Tags: Dreamweaver

Similar Questions

  • Keyboard shortcuts sheet for after effects CC

    Hello

    Someone at - it a sheet of hotkeys (single page) for after effects CC?

    In addition, customized for CC available keyboards?

    I saw the sheet shortcuts keyboard for older versions of AE and keyboards for the old version.

    There are nearly 900 for After Effects keyboard shortcuts. They can all possibly take place on a single page.

    The PDF version of the document helps Hans pointing to contains all shortcuts in a unique reference section. You can access the HTML version of the same content using the help > command in After Effects keyboard shortcuts.

  • Clear cache page after deletion to avoid errors ora-1403 Apex 5.01

    Hi all

    Always 'new' at Apex!

    I'm getting ORA-01403: no data available error after deleting a line in a 5.01 Apex form created from the interactive report + model form.

    After searching the forum, I found a direct reference to this situation:

    ORA-01403: no data available on the deletion of a record

    --------------------------------------------------------------------------------

    After deleting a record, you must clear the page cache. If you do not have the primary key item session state can keep the old value of the deleted record. The page loading process will try to retrieve this value from the table and meet no data found.

    ---------------------------------------------------------------------------------

    Unfortunately, I do not know where or how to " " " clear the cache of the page ' after deleting a record.

    I saw the reverence to APEX_UTIL. CLEAR_PAGE_CACHE but I don't know where to use

    Others say still set the value of the key null column.

    The documentation of the Apex is said to use the URL:

    2.9.3.2.2 example: clear cache on a Page and passing an element value

    This example shows how to implement a form of update. It erases the existing information and sets the value of the element (usually a primary key).

    f?p=6000:6003:&APP_SESSION.::NO:6003:MY_ITEM:1234 

    This example:

    • Runs the application 6003 6000 page and uses the ID of the current session

    • Specifies to not show debug information ( NO )

    • Clears all values maintained by the current session for the items on page 6003 cache

    • Sets the State of an element called session MY_ITEM value1234

    But I do not know where or how to do that in the context of the key Suppr.

    Can someone point me in the right direction? I'm learning the Apex using as many integrates native as possible features.

    If clearing the cache of the page, that's what needs to be done after the removal of a line, would not these features have been integrated to the Delete key?

    Thank you

    Mason

    OK, after wandering in the desert for a while, I tried this approach to clear the cache once you press the button Delete and it doesn't seem to work.

    I created a new process called "Clear the cache" after the process of "line process of...» »

    The process to clear the cache was of type PL/SQL Code with the section of Code PL/SQL, the value 'APEX_UTIL. CLEAR_PAGE_CACHE (2); »

    I don't know if it's a good way to do this, or if the accepted practices, or what side effects will rain down on me that they are, but at least I got a result that has solved my immediate problem.

    So nice to click on delete and not greeted with an ORA-01403 error!

    Thanks to everyone who helped me in on it!

    Mason

  • I bought ipad air 1 after that 2013 but can not get the pages for free. Numbers and imovie I can. IOS9 running at the moment. I have pages when I connect on icloud on my pc. Can I transfer iPad app, because it is not in the ILO purchased in itunes.

    Hi everyone, this is my first post, also help on the post would be appreciated.

    I bought ipad air 1 after that 2013 but can not get the pages for free. Numbers and imovie I can. IOS9 running at the moment. I have pages when I connect on icloud on my pc. Can I transfer iPad app, because it is not in the ILO purchased in itunes.

    Thanks in advance

    Newbie

    The only way to install an ipad app is through the app store.  PC or Mac software does not run on the ipad.  Search in the contacts link at the bottom right of this page.  Give apple a call.

    I guess is the icon for pages in icloud for storing documents pages.  At the same time, apple had a cloud based pages.  Not sure what happened to her.

    R

  • Laptop will not load web pages for a few minutes after sleep

    HP M6-1045dx, Windows HP 64, SP1

    After waking from sleep, my computer does not load web pages for a few minutes after waking up from his sleep.

    I've tried to follow several times:

    Disabled/enabled wireless adapter

    Wireless adapter uninstalled/reinstalled software both links to HP and Intel.

    Did a clean install of the operating system.

    I sit within eight feet from my wireless router.  Another laptop connects instantly to sleep with no isses.

    Thank you.

    Download and install the latest Intel Wireless driver

    Intel Wireless Driver version 15.2.0.19

    I checked your BIOS driver. It is already updated to F.25. I would like to know what are the results with the new wireless driver.

  • After VO extension update the page for some fields on a page does not work

    After VO extension update the page for some fields on a page does not work. The message arrives the data are saved, but the values is the same as that of the former. And this happens with only a few fields, other fields are working well.

    Any pointer to solve problems will be of great help.

    Thank you in advance.

    Check if the standard VO has a RowImpl and it overrides the methods getter and setter for fields that is affected. If so, you will need to call super() in your custom extended RowImpl to call this logic.

    See the link below for how to call great from the extended RowImpl.

    Johny tips: OAF: transient attributes not getting filled extended vo

    Example Code:

    public String getAttribute1() {
       //return (String) getAttributeInternal("Attribute1");
      return super.getAttribute1();
     }
    

    If the above did not help, attach standard and custom VO files. We can have a look.

    See you soon

    AJ

  • I always get requests to update on my office home page. After the most recent, most of my quick start icons are badges of adobe. Except a few functions are not open. When I right click on Firefox (for example) it says 'READ' instead of 'OPEN' and t

    I always get requests to update on my office home page. After the most recent, most of my quick start icons are badges of adobe. Except a few functions are not open. When I right click on Firefox (for example) it says 'READ' rather than 'OPEN' and then displays the Adobe error box. The only other answer I received (from Ask.com) is that the update was a virus. I'm not computor savy and my pc is quite old. I just want to come an hour before this recent action, but I can't open Norton power eraser or even the ability of the computer to return to an earlier point in time to cancel the action. Each of these attempts of task appears Adobe error box. I am currently showing Adobe Reader X 10,0

    Hi deanrlh,

    I apologize for the inconvenience caused. Please follow the steps in the below article mentioned: Application, file icons change in Acrobat/Reader icon

    Thank you

    Abhishek

  • How to put a common page for all users after loging on?

    Hi all
    "My dashboard" is now the default page after logon.
    I want to put a home page by default for all users. users can see the homepage after loging on.

    How to change the default dashboard "My dashboard" to the "Home page" for all users?

    Thank you
    Dan

    Hello

    Steps to follow:

    Tried to put the default dashboard for all users.
    1. creates a session init block
    "2 source of data used in select ' / shared/SH Test / _portal / Test1" double
    3. This value assigned to the variable of session CHEMINPORTAIL
    4. in presentation services > Administration > my account > default dashboard must be set to "default". Then only the dashboard specified in block init will appear otherwise my account will override the init block.
    5. save the changes to the RPD.
    5 disconnect and reconnect to see if it works well. It works perfectly fine.

    For more details, please see the document of CSG replication. But this is for all users.

    If the customer wishes to have a user/group basis homepage.
    1. they should have 2 separate tables.
    i. Group_path_tab with 2 columns. Group_id, portal_path
    Wise group path portal for all groups
    II. user map table group
    Group_id, groupname, user_id

    The user should be part of a group.

    2. then in the writing init bulk sql must be something like this

    Select A.portal_path in the Group_path_tab A, User_group_map B
    where = B.user_id: USER
    and B.Group_id = A.Group_id

    SO, based on the USER session variable, it will try to identify the group, and then the portal_path.
    Finally, set this value to the session CHEMINPORTAIL variable.

    Ref:
    http://total-bi.com/2011/01/OBIEE-11g-change-default-dashboard/
    Thank you!

  • I have a laptop Windows 7, which says it's the upgrade. It puts in place upgrade now page for more than 5-6 hours.

    * Original title: upgrade Windows 10

    I have a laptop Windows 7, which says it's the upgrade.  I leave work on the upgrade to Windows 10 on 2 different days and no luck.  It puts in place upgrade now page for more than 5-6 hours.  Any help?

    Jeff

    If the upgrade process sticks or does not respond to 99%, it is better to wait and do nothing for 5 to 6 hours. If there is still no progress to close the Wizard Windows 10 upgrade, restart the computer and try to upgrade following the tips detailed below.

    You are using an ethernet cable or wireless to connect your computer to the router? Wired ethernet is faster and more reliable for large downloads. An ethernet cable is a low-cost purchase.

    Disable your anti-virus software so that the upgrade.

    I suggest you to download the tool for creating Windows Media 10 ISO and make a place in upgrade.

    Download the update of Windows Media Player 10 tool creation build 10586:
    http://www.Microsoft.com/en-us/software-download/Windows10

    How to download an ISO using media tool:
    http://www.tenforums.com/tutorials/9230-Windows-10-ISO-download.html

    How to make a upgrade in Place using method 1:
    http://www.tenforums.com/tutorials/16397-repair-install-Windows-10-place-upgrade.html#step6

    If this does not work please provide more information for your issue to be diagnosed.

    Restart your computer and wait 20 minutes for the system to operate before you download information. When the review much, not Event Viewer log files all problems show in the period immediately after the computer has booted.

    Please provide a copy of your system information file. Type the system information in the search box above the Start button and press the ENTER key (alternative is select Start, all programs, accessories, System Tools, system information). Select file, Export and give the file a name noting where it is located. Not to place the cursor in the body of the report before exporting the file. The system creates a new information file system each time system information is available. You must allow a minute or two before the file is completely filled before exporting a copy. Please download the file to your OneDrive, to share with everyone and post a link here. If the report is in one language other than English, please indicate the language.

    Please download and share with everyone a new copy of your log System of your event viewer on your disc one and post a link here. It allows to avoid confusion if you delete all previous copies of the log files of your OneDrive.

    To access the system, log, select Start, Control Panel, administrative tools, Event Viewer, in the list on the left of the window, expand Windows logs and select System. Place the cursor on the system, select the Action in the Menu and record all events like (the evtx default file type) and give a name to the file. Do not offer not filtered files. Do not place the cursor in the list of reports before selecting the Action from the menu. Do not clear the logs so that you have a persistent problem.

    For assistance OneDrive see paragraph 9.3:

    http://www.gerryscomputertips.co.UK/MicrosoftCommunity1.htm

  • How can I insert a new blank page immediately after a proposed page

    I'm trying to change an iBook of 147 pages, and I want to add a new blank page immediately after page 73.  I tried ctrl-click on the page, but the new page is added at the end of the chapter, which is obviously not where I want to.

    Hello Jeff Reeves,.

    Thank you for using communities of Apple Support.

    From your post, I understand that you are not able to add a new page in the location you want to add. I know how it is important for your book or in the order that you want it to be in. Once you add the extra page will be able to do drag where you want to put it to you?

    I recommend to review the section in this article to add a new page.

    iBooks author: Add, reorganize, or delete pages, chapters, and sections

    Add a new page

    1. In the book pane (shown above), select the chapter or section to add pages to.

    2. Click Add page in the toolbar, and then choose Pages > Option.

    Tip: You can also add a new page by clicking on the order page in the book pane and choose Insert Page on the shortcut menu. The new page uses the default layout for the chapter or section.

    Reorganize the chapters or sections

    In the work pane, do one or both of the following:

    Change the order of the chapters: drag them.

    Change the order of the sections: drag an item to a new location in the chapter, or to another chapter.

    When the new page is added at the end of the chapter, see if you are able to drag to the location wished it to be in.

    See you soon

  • How to hide the table row after deleting logical

    Hello.
    I use Jdeveloper 11.1.1.3.0, ADF BC and ADF Faces.
    I would like to implement the logic delete in my application.
    In my entity object I have deleted attribute and I replace the remove() method in my EntityImpl class.
        @Override
        public void remove()
        {
           setDeleted("Y");
        }
    and I added this condition in my view object
    WHERE NVL(Deleted,'N') <> 'Y'
    on my page, I have a table. This table has a column to remove each line. I dragged and drop action the data control RemoveRowWithKey
    and the value of the parameter * #{row.rowKeyStr} *.
    I have what I need is the following:
    When the user click on the delete button I want to hide the ROE of the table. I tried to rerun the query after deleting, but the line is still on the page. Why run query does not hide the line of the screen.
    Here's the code I used to remove and run queries
        public String deleteLogically()
        {
            BindingContainer bindings = getBindings();
            OperationBinding operationBinding = bindings.getOperationBinding("removeRowWithKey");
            Object result = operationBinding.execute();
            DCBindingContainer dc=(DCBindingContainer) bindings;
            DCIteratorBinding iter=dc.findIteratorBinding("TakenMaterialsView4Iterator");
            iter.getCurrentRow().setAttribute("Deleted", "Y");
            //iter.getViewObject().executeQuery();
            iter.executeQuery();
            return null;
        }
    as you can see I used two methods () iter.getViewObject () .executeQuery; and iter.executeQuery (); but the result is the same.

    I built a sample for you - http://jobinesh.blogspot.com/2011/05/soft-deletion-of-rows.html. Please see if it meets your requirement.

  • iOS 10 Mail crashes after deleting some messages

    On my iPad after installing iOS 10 Mail closed unexpectly after deleting some messages. In addition, I regret the disappearance of the "remove all" button on some of the issues.

    Try resetting your device. This will not erase your data stored on that device.

    • Press and hold the sleep/wake button
    • Press and hold the Home button
    • Press and hold both buttons until the display turns off and on again with the Apple logo on the subject.

    Alternatively, you can go to settings - general - reset - Reset all settings

    If that doesn't work, restore your device to factory settings. Please note that this will delete the data on your device.

    Take a look this Apple Support article: use iTunes to restore the iPhone, iPad or iPod to factory settings - Apple Support.

  • Gmail and all the others crash in "Oops!" Google cannot load this page for some reason any

    I am running 10.10.5 and Firefox 41.0.2. Sophos said me no problem.

    In case of Gmail or any other program running in Firefox, the program stops to the message of the screen;
    "Oops!"

    "Google can not load this page for some reason any."

    The box Try Again has no effect.

    However the use of "Most visited" (top of the line LH of Firefox screen) returns to place that quit, without loss of data

    Clear the cache and delete cookies only from Web sites that cause problems.

    "Clear the Cache":

    • Firefox > Preferences > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox > Preferences > privacy > "Use the custom settings for history" > Cookies: "show the Cookies".

    If the deletion of cookies did not help, then it is possible that the cookies.sqlite file that stores the cookies has been corrupted.

    • Rename (or delete) cookies.sqlite (cookies.sqlite.old) and if present remove cookies.sqlite - shm and cookies.sqlite - wal in the Firefox profile folder in the cookies.sqlite case has been corrupted.

    You can use this button to go to the current Firefox profile folder:

  • Can I put in start page for Firefox with a different search engine, not Google?

    I remove all things 'Google' from my computer. I want the Start Page for Firefox, because I can get to options, modules, etc. and I don't want to lose this.

    Easier is to select the preferred search engine in the search bar on the Navigation toolbar to see the name of this search engine in the pref browser.search.selectedEngine and copy its value to the browser.search.defaultenginename pref.

    Firefox should use this search engine on the subject: home page after a closing and restarting Firefox.

    If this isn't the case, then you can have an extension which is predominant, especially if the pref change.

  • I currently have Firefox 9.0. Why the start page for firefox keep telling me that I don't have the latest version?

    I currently have Firefox 9.0. Why the start page for firefox keep telling me that I don't have the latest version?

    You may need the old start page. Go to Firefox > Options and in the pane general, under Startup, click on restore by default. The page you have probably (http://google.com/firefox) only served to 3.6 (and tells you you are outdated), but some users seem to have gotten stuck on it after updating to Firefox 4 or upper version.

Maybe you are looking for

  • IPhone apps

    I tried to load a free app and Apple wants the auditing of the accounts.  I didn't need than before.  I did something in the settings of my phone or do you really need to provide credit card information?

  • Toshiba virtual Store account Reset - 6046

    I'm trying to access my virtual shop Toshiba on my Samo Tablet for the first time. I have never registered to the account and when I open the app it asks me my e-mail address and the password in the upper part, and he said 'Personal account' 6046 Can

  • Store TV + cannot read Arabic subtitles

    Arabic subtitles can be played back on this unit.On the TV, it is shown as symbols. This Arab devices support subtitle?

  • Beats audio problem

    Hello Recently, I leave my laptop computer to launch a new update of hp and realized afterwards that my Beats Audio software will not operate. When I search audio beats in the start menu, click beats audio Panel that a small window pops up saying 'ca

  • HP 2000: buttons of the touchpad windows 10

    The buttons on the touchpad will not swap, I'm left-handed.  I want to make the primary right, main drawback is the left button.  A usb mouse Exchange buttons.   I had windows 8.1 front and swap the touchpad buttons.  How can I fix?