PHP - if one single page, another pass to another?

I have an if else statement and I want to go on a single page so and another another page.  I can't make it go to the page.  He's going nowhere.  Can someone give me a sample php code how to do this?  Thank you!

Rick4209 wrote:

I have an if else statement and I want to go on a single page so and another another page.  I can't make it go to the page.  He's going nowhere.  Can someone give me a sample php code how to do this?  Thank you!

if (isset($_SESSION['MM_Username'])) {
  header ('Location: http://example.com/loggedin.php');
  exit;
} else {
  header ('Location: http://example.com/login.php');
  exit;
}

I suspect that if you're going anywhere, it's because it came out before the call to the header. For an explanation, see http://kb2.adobe.com/community/publishing/505/cpsid_50572.html.

Tags: Dreamweaver

Similar Questions

  • How to copy and paste text from the page of the book one photo to another.

    Hello, I downloaded this software 2 days ago, and I had so much fun with it. pls I need help on how to copy and paste text from the page of the book one photo to another. Second, how to copy my photo book completed pages project to another laptop computer for printing. Thank you

    Wow! I solved the first problem, I clicked on 'ctrl c' to copy and "ctrl v" to paste. yipppppeee! now am loving this software d most just need help with the second question now

  • What are the parameters? How are Variables differenet? Why we can not use variables to pass data to one sequnece to another? What is the advantage to use parameters instead of Variables?

    Hi all

    I am new to TestStand. Still in the learning process.

    What are the parameters? How are Variables differenet? Why we can not use variables to pass data to one sequnece to another? What is the advantage to use parameters instead of Variables?

    Thanks in advance,

    LaVIEWan

    I'm sorry... I discovered that... its not at all possible to pass data to another sequence using variables... it must be through settings... once again I apologize for the display of such a stupid question

  • How to navigate in one single screen to another?

    Hai, I am a beginner in java development. I need to know how to navigate a single screen to another screen. Someone knows it please help me... Thank you cordially dembele

    Just use after declaration to navigate from one screen to another screen,

    UiApplication.getUiApplication () .pushScreen (New Screen());

    popping a battery usage screen

    UiApplication.getUiApplication () .popScreen ();

  • Error in the runing a page after moving jdev file from one directory to another

    Hi all

    I just moved the home folder from one computer to another jdev

    the old road was like that

    C:/jdevhome/jdev/jdev.


    the news is:


    D:/trainees/ABOUTABITAfaf / jdev/jdevhome/jdev /

    I set up the computer in the new environment: I created with the new path environment variable and reconfigured the run setting by giving the new path to the dbc file

    I tried the link and it works

    When I want to start a page, I have this error

    Error: The specified path was not found

    07/15/06 10:09:18 [SERIOUS]: error instantiating application file:/C:/jdev/jdevhome/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/apps_media-app.xml: could not get ApplicationConfig for APPS_OA: IO error reading APPS_OA

    07/15/06 10:09:18 [SERIOUS]: can not update a configuration file because instantiation of application is down. Fix instantiation and restart oc4j.

    07/15/06 10:09:19 server initialization error: at least one valid source code or import-shared-library is required pour the shared-library "global.libraries" element in D:/Stagiaires/ABOUTABITAfaf/jdev/jdevhome/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/server.xml.

    07/15/06 10:09:19 fatal error: outgoing server

    Process has finished with exit code 1.

    I don't know what is causing the problem. It is clear that somewhere, there is always a relative path to change, but I don't know what to change

    Can someone help me please?

    Open the .jpr file in a text editor and find your old path and replace.

    Update the values for: JDEV_INSTALL_URL & PROJECT_URL.

    Another option is to create a dummy project in the new Jdeveloper and copy your folder (the one inside the the myProjects) and replace.

  • How to copy from one Application to another custom Page template

    Hello

    12.1.3 Jdev

    How can I copy a created exculpatory to one application to another?

    I don't want to create the existing application as a jar and add a library to the following. I want to copy an existing template and begin to change in the next request.

    See you soon

    AJ

    Each application that uses the model page, have the file called pagetemplate - metadata.xml, which is basically a repository of page template.

    When you create a page template, some entries are added to this file automatically for you.

    That's why I said lets you create a new model.

    Well, next to the source code of the template page, if the original model have pageDef, you need this pageDef too, so do the same - create Def page for your new template and just copy - paste the contents of the original.

  • Page of the copy from one application to another application in the same workspace

    Is it possible to copy a page from one application to another application in the same workspace?

    If so could you tell me how its done?

    Thanking you in advance.

    go to any page in your target application and click on 'Create' > 'new page as a copy '. The rest of the process is driven by the magician.

    Denes Kubicek

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

    http://deneskubicek.blogspot.com/

    http://www.Apress.com/9781430235125

    https://Apex.Oracle.com/pls/Apex/f?p=31517:1

    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494

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

  • How can I change one single subscription to another

    How can I change one single subscription to another when I only have the option to cancel and not to change my subscription?

    The change of regime is also possible (if any) by contacting support via Contact Customer Care

    You can also cancel the present CC & buy the CC of your choice. Change of plan varies according to the current plan you have.

    Concerning

    Stéphane

  • How to extract the contents of the div on a single page in div on another page

    Hi all

    I would like to draw the content of the div on the page divs on another page (so that I don't have to update the information on a single page).

    Could someone give me a tip on where to read about what/how to? I don't expect the final answer, just a hint on where to start looking for how get startet.

    Thanks in advance for any answers.

    Best regards

    Ivan

    www.colombiareiser.no

    Try to read on DW Spry html data sets. The Spry HTML data set allows users to use HTML tables standards and other markup, structured as a data source.

    http://labs.Adobe.com/technologies/Spry/articles/html_dataset/index.html

    http://labs.Adobe.com/technologies/Spry/docs.html

    Kind regards

    Vinay

  • How to pass the parameter one form to another form?

    Hello

    I want to pass the parameter one form to another form called.

    What are the steps I want to do.

    Please guide me

    Iqbal

    Published by: Sabrina on July 21, 2010 23:38

    You want to see this link...

    sheikyerbouti.developpez.com/forms/Forms_Parameters.doc

  • Move fields from one place to another place?

    Hello

    I hv developed my_form, having two subforms, fields.

    They decided to change the layout drastically, pls. Let me know how I can MOVE fields as a BAND from one location to another location on ANOTHER page?

    Say, earlier I hv 5 fields together, side by side on a same line wrapped in my_sub_form on the 2nd page. Now, after review they want to see these 5 areas of the my_sub_form to the 3rd page, let me pls.

    (1) how can I move these 5 fields TOGETHER as a group somewhere else, then it meakes my easy life? instead of moving a single unique field.

    (2) or should I pass my_sub_form AS A WHOLE? I tried does not give me a chance to move like a my_sub_form?

    Pls. 3) let me know what is object tool? where can I see on the form, I have a RIGHT CLICK, but didn't see any object of these tools in the menu displayed sontext?

    Hello

    Best option would be to select the objects in the hierarchy and then drag them in the hierarchy to the new location. For example if you drag on a page and release, Designer places the objects at the end of the page content.

    Hope that helps,

    Niall

  • Preview.app stuck on the first page of the PDF in single page mode

    I regularly Preview.app view PDF files and want to use the "Single Page" function to display an entire page at one time. I have 'Single Page' display set as the default behavior.

    Lately when I open a PDF file, they properly open the first page, but I am unable to navigate to another page via the drop-down page, touch up/down arrow. If the PDF file has a table of contents, I am able to go beyond the first page through it and then proceed to navigate normally. If it is not a table of contents, the only solution is to continuous scrolling mode and continue to navigate beyond the first page.

    It's very annoying! Unfortunately, I can't remember where this started happening. It could be when I upgraded to MacOS Sierra, but I can't confirm.

    Everyone else see this behavior?

    Hold down the Option/ALT key, then use the cursor to the TOP or to the BOTTOM of the key.

  • How to send values textbox from one screen to another screen

    Hello guys

    can anyone tell me that how can I get the value of the editField from one screen to another screen.

    Please provide the code.

    Thanks in advance

    Click on a single screen Button.of. Pass the value of the textField like this.

    class first extends MainScreen implements FieldChangedListener
    {
        public first()
        {
            ....................
            Declareation of textField and other controls.
        }
        public void fieldChanged(Field f, int context)
        {
            //on the clicking on the Button here the code
            if (f== button)
            {
                String str=textfield.getText();
                UiApplication.getUiApplication().pushScreen(new second(str))
            }
        }
    }
    
    // another screen
    
    class second extends MainScreen
    {
        public second(String str)
        {
            //Now str contain that values.
        }
    }
    

    ------------------------------------------------------------------------------------
    Kudo press to say thank you to the developer.
    Also, press accept it as a button when you got the Solution.

  • Can we have several pe: pageCustomizable in a single page?

    Hello

    I have a model which is to have two af:facetRef, so I have two facets for the content of my page. Now, I want to see the two regions, when I'm in edit mode.

    For this I tried adding 2 pe: pageCustomizable in my page, one in every facet. But it does not work.

    So my question is, is - it possible to use 2 pe: pageCustomizable in a single page.

    If so, how?

    If not, is there another solution to my problem.

    Thank you and best regards,

    Erick.

    I don't think you can use two pageCustomizable in a single page.

    What is your use cases? Why your model requires two facets contained? Users can create/edit the layouts in a page in edit mode - if that's what you're after.

    Please elaborate on the requirements and someone in the forum can lead to a solution.

  • Two updated reports on a single Page

    I have 2 put reports to date on a single page and two updating procedures (one for each report)
    Each procedure is related to a different button and calls another procedure in the database

    My question is how to tell the procedure page, which report to look?

    Gus

    Gus C wrote:
    I changed my company and the new company uses tabular forms

    I'm on the right track

    So if the report 1 I use number 1-20, for example, apex_item.hidden(4,geokey)
    and report 2, I use the numbering 21-40, for example, apex_item.hidden(22,f.siid).

    Yes.

    The problem I see, is that the two reports produce a checksum using APEX_ITEM. MD5_CHECKSUM I think you
    refer to the update as apex_application.g_fcs procedure.
    How can I handle this?

    Use apex_item.md5_hidden instead, by specifying an array of different form for each report element.

    (Maybe you should ask someone in the new society on their preferred this approach if it is a common practice it...?)

Maybe you are looking for