Same Code In 2 Different Pages Behaves Differently In Each

I have a series of three pages such that each, when submitted, calls the next one.  The first page calls the second one correctly, but the second one calls only itself.  Both are using the same code.
The form code for the first page is:
<form name="form1" method="post" onSubmit="return show_message();" action="<?php echo $_SERVER['PHP_SELF']; ?>">
At the top of the page is the following php script:
     In the first page (the one that works):
if (isset($_POST['submit']))
     echo '<META http-equiv="refresh" content="0;URL=WOTCPg2.php">';     // This works
//  header('Location: WOTCPg2.php');     // This was tried but didn't work
?>
     When the Submit button is pressed, the above code displays the next page, as it should.
     The form code for the second page is:
    <form  method="post" name="QstnrPg1" id="QstnrPg1" action="<?php echo $_SERVER['PHP_SELF']; ?>">
     In the second page is the following php script:
   <?php
if (isset($_POST['submit']))
//  header('Location: BlankIOD.php');     // this was tried but didn't work
  echo '<META http-equiv="refresh" content="0;URL=BlankIOD.php">';  // This doesn't work either (???)
} else
     Other code that executes (correctly) when the form loads
     When the Submit button here is pressed, the form simply refreshes itself.  I can't understand why this is happening, since both pages have essentially the same code.  Can anyone tell me what I'm missing or doing wrong?

Well, I just discovered something.  Here's a reversal of one of my previous threads (i.e. ... Works in Live View but not on the server.  The second page (above) still doesn't work in my local server (xampp), but just for kicks, I uploaded it to my Yahoo site and guess what? It works there.  Go figure!  I'd really like to know why that would be the case, because it's certainly causing me a lot of confusion.  Are there some xampp settings somewhere that I need to check on?

Similar Messages

  • Print different pages in different computers

    Hi Gurus,
    I am using BIP standalone 10.1.3.4. My report seems showing different pages in different computers when I try to print in pdf format. Is there any way to solve it
    E.g.
    Computer A ->7 pgs when I press view in pdf
    Computer B -> 9 pgs when I press view in pdf
    Both on the same template
    Rgds,
    Raymond

    Hi Raymond
    Seeing as the document is generated on the server ie the client has nothing to do with it other than requesting the document I can not see how its generating an extra two pages on one of the clients. Whats the difference between the two documents? Same amount of data?
    Regardsa
    Tim

  • Same item used in different pages & for different tables

    Hi,
    i created some items, which work like a filter for my tables. I've got a lot of tables and the items have always the same function. They filter the same column but they're used for different tables! If i want to copy 1 item to another page, it's forbidden to use the same name again and that's the reason why I've got to customize every item for every page. I can copy the items but i have to change the name and thats why i have to update the item name in my SQL Query & the Tablename. All which is marked i have to change for every page(new table)!
    where upper(TABLENAME) like '%' || upper(:P158_FILTER_TABLENAME) || '%'
    AND upper(KEYVALUE) like '%' || upper(:P158_FILTER_KEYVALUE) || '%'
    AND DATE_INSERTED_PDW >= to_date(:P158_FILTER_DATE_INSERTED_PDW,'DD.MM.YYYY')
    P158_FILTER_TABLENAME:
    select distinct TABLENAME d, TABLENAME r
    from ERR_MAPL //it's the tablename I have to update it on every new page/table
    order by 1
    By a Process I created i have the same Problem it's the same Process, it's only used in differnet tables:
    BEGIN
    FOR ii IN 1 .. WWV_Flow.g_f01.COUNT -- the row selector
    LOOP
    UPDATE ERR_MAPL SET RELOAD_FLAG = 1
    WHERE ERR_ID = WWV_Flow.g_f02(WWV_Flow.g_f01(ii));
    END LOOP;
    END;
    THX Mat
    Message was edited by:
    user552848

    Hi Carl Rutter,
    You have to creat 2 special production order for this item. when issue the component make sure you issue the stock as per the cosumption becaue one have 10mmx10mm and the another item have 50x50 in this case you issue component by square inch wise. for example 10*10 = 100 squre inch.
    50*50 = 2500 square inch so the cost will be approtionate. you can Use multiple uom method to obtain this, other wise you have covert into stock then you issue the component. If you want traxk size wise ,you can use batch option for Finishe goods.
    Regards
    Sridharan

  • 2 main windows in 2 different pages with different layouts

    Hi Guru's,
    I'm working on Smartforms.
    My problem is, i have 2 different pages with 2 diiferent main windows.
    The First Page lasts after 7 pages of Data Printing.
    It is coming corrctly.
    I've assign the Next Page as Second Page in the First Page and i'm maintaining a condition in the First Page to go to the Second page.
    Everything is working fine, but in the second page i'm not getting the Main Window.
    What could be the Problem??? Why the control is not going to main window of second page???
    Thanks in advance.
    Regards,
    Adi.

    Try like this:
    1. Set the Next page of the FIRST as FIRST
    2. In the MAIN window of the FIRST, after completing the TABLE, create a command which calls the SECOND PAGE.
    3. In SECOND page, create a MAIN window, with differnet name. If you create a same name, system will automatically refer the MAIN window in the FIRST page.
    4. Set the next page of the SECOND as SECOND.
    Regards,
    Naimesh Patel

  • Eventing between iView on different pages and different models

    Hi guys,
    Though I read carefully as many related posts as possible,
    I haven’t been able to determine a definite answer to the following question.
    I am creating an ‘application’ that will show several graphs about a month n in the portal.  Each graph is an iView in a different page, and I want the iViews to be completely independent.  I mean, I can’t go for the option of having all the iViews in the same model.
    Therefore, I have to design each iView with an event in,
    They would receive as parameter, the month n issued as event out of a first iView.
    I have not been able to have those iView communicating with each others up to now.
    I saw that maybe Guided Procedure would be an alternative, but fear that I then have to pass in the graphs in the exact same following order each time, which I want to avoid.
    Any pointer is welcome.
    Ch

    Thanks for your trial, Jan.
    Using one single model is not an option (and I know how to do it should I decide to go that way).
    Think about authorizations, for instance : user1 can see graph a b c and user2 can see graph a d e. 
    If the graphs are all in a big iView, I can't segregate graphs b c d e that are not common to the two users.  If each graph is in a different iView/page, I can assign them one by one.
    Another application of the concept : if I have a 'summary' page and a 'detailed' page, showing the same graph but at a different size, for instance : going for the 'indenpendancy' solution allows me to re-use exactly the same iView, just the layout properties would be changed at 'portal' level.
    Ch

  • Print in different page for different material type in Sapscript

    Hi all
    How do I do the above matter?
    Currently I have a script that print all material according to some condition.
    My client request to have a different page of material list for different material type.
    Please advise
    az

    Hi,
    1) Sort the internal table by material type.
    call func 'OPEN_FORM'.
    loop at itab.
    at new mattype.
    if mattype = 'A'.
      call fun 'START_FORM'.
       exporting
        page   =    'PAGEA'.
    elseif mattype = 'B'.
      call fun 'START_FORM'.
       exporting
        page   =    'PAGEB'.
    endat.
    call func 'WRITE_FORM'.
    AT end of mattype.
    call function 'END_FORM'.
    endat.
    endloop.
    call function 'CLOSE_FORM'.
    Thanks,
    Nethaji.

  • How to navigate to different page with different user name

    Hi,
    I have created a DB application....
    My application consist of 4 pages.......
    But if the first user logs into an application means, he needs to see only 3rd page
    If the second user logs into an application means, he needs to see only 4th page.......
    (i.e) 3rd page couldnot been accessible by the second user........
    and 4th page couldnot been accessible by the first user.......
    How to achieve this, i think i need to set some validation in the login page.....if so how to do that.....
    it is an urgency....help me friends....
    Regards,
    Harry...

    Hi,
    Thanks for your reply, so i need to create a post authentication for redirecting to different page as you said....
    Since these are my two pages(in the application)
    *) issues page.
    *) analyst page.
    Suppose if the User A login to the issues page(via. login page) he needs to see only the issues page
    if the User B login to the analyst page(via. login page) he needs to see only the analyst page...
    Since User A and B have access to the application.....
    But A should login only to issues page in my application and he should not login to the analyst page...
    and B should login only to analyst page in my application and he should not login to the issues page...
    For that where i need to define the post authentication...whether in login page i need to define.....
    if so, whether i need to define sql query for restricting the users to the particular page in the post authentication...
    Regards,
    Harry...

  • Why Same UI Page Behaves Differently on Different EBS Env.?

    Hi Experts,
    I'm checking Accessibility of our UI page in EBS, on Firefox. There are two EBS env. having the same codeline R12.2. On one env., the page shows fine, but the other one shows "No ALT text specified" for the button/graph, etc. Our product page code are the same revision. I have no idea what might cause that. Could you give me some inputs here?
    Thanks!

    ''Possibly'' because when you access the file from your hard disk (I assume that's what you mean by "try the updated web page in my browser") and when you access it from a webserever, the file type is different. If you're brought up with windows you might think that the file type is determined by the extension (.pdf) but it's not. Depending on the webserver, your operating system, and your browser, it ought to depend on the 'mime type'
    So try uploading the amended page to your webserver (in a test area) and see if it works off the web.

  • How to print the same data in different pages of different trys

    Hi,
    Part II: Check stub u2013
              We need to print Vendor account # (REGUH-LIFNR), Vendor Name ((REGUH-NAME1), Payment doc # (REGUH-VBLNR), Check date (PAYR-ZALDT) and Check number (PAYR-CHECT) in the header portion and in the detail portion Invoice # (REGUP-XBLNR), Date (REGUP-BUDAT), Amount (REGUP-DMBTR), Amount, Discount and Net amount paid (REGUP-DMBTR).      
    Part III: Check stub u2013
              We need to print Vendor account # (REGUH-LIFNR), Vendor Name ((REGUH-NAME1), Payment doc # (REGUH-VBLNR), Check date (PAYR-ZALDT) and Check number (PAYR-CHECT) in the header portion and in the detail portion Invoice # (REGUP-XBLNR), Date (REGUP-BUDAT), Amount (REGUP-DMBTR), Amount, Discount and Net amount paid (REGUP-DMBTR).
    i am printing like the above and my question is as below.
    Q) If the detail section of Part II and Part III spills beyond the available space then the remainder should be printed on a separate white paper picked from the next tray after printing all the checks. Ensure that this will not be printed on the following check.
    Can anyone please answer this.

    Hi Swathi,
    Where does that check box available, could please give your answer in details so that i can follow like that.
    Thanks
    Srinivas

  • OAF pages in different browsers--problem

    Does the page behave differently on different browsers? For instance,we have a page that loads fine in mozilla, but in IE lay out goes awry. Do we have any special setting to do?
    Kindly reply asap

    Check the reply in thread Clock in OAF page
    Please elaborate, what exactly is the issue? What do you mean by "but in IE lay out goes awry"?
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Is it possible to have different tabs print with different page setups.

    I would like to use specific page setup parameters (under the File menu) for printing from a particular web site, but those parameters do not work well for printing from other web sites. I would like to be able to specify different page setup parameters for each open tab. Is this possible?

    That might be possible via a GreaseMonkey user script, by setting the '''@include''' address to a specific domain.
    http://wiki.greasespot.net/User_script
    This is an example of a script I found a few years ago to bypass a fault in Firefox when printing the Courier font.
    <pre><nowiki>// ==UserScript==
    // @name Fix Courier Bug
    // @namespace http://userscripts.org
    // @description Replaces "Courier" with "Courier New" font
    // @author Dan
    // @include *
    // ==/UserScript==
    var elementList = document.getElementsByTagName('*');
    for (var i = elementList.length - 1; i >= 0; i--) {
    var elementItem = elementList[i];
    var ff = getComputedStyle(elementItem, '').fontFamily;
    var oldff=ff;
    ff = ff.replace('Courier New', '1234567890qwertyFONT');
    ff = ff.replace('Courier', 'Courier New');
    ff = ff.replace('1234567890qwertyFONT','Courier New');
    elementItem.style.fontFamily = ff; </nowiki></pre>
    Sorry, I can't help you with writing a script.

  • How to print different pages of sap script  from diff. trays of printer

    Hi All,
    I have the requirement in SAP script. How to print different pages from different trays in the printer.
    For example  page 1 logo and address has to print from tray-1,
                        page 2 main data print from tray-2,
                        page 3 footer data print from tray-3.
    will appreciate if u come up with solutions asap.
    Thanks in advance.

    Hi,
    May be the links given below might help you,
    SAPScript:Selecting Different Tray in SAPscript
    Print to different output tray in SAPscript/Print Workbench
    Regards,
    Hema.
    Reward points if it is useful.

  • Different Pages in Multiple tabs of Content Area

    Hi,
    I have one window with for iview for transactions for se16 and se11.
    I want these two windows to open in different tabs of content area.
    at present when i click on the second the content area is over wrtten on the first window content.
    please suggest any configuration missing / workaround for displaying different pages on different tabs of content area.
    Thanks
    Sneha

    I wonder why do you want to create portal pages for se16 and se11 transactions from portal. However one option is to develop a custom iView using PDK to display two tabs.

  • How to Generate a complex smart form for the Sales Order different pages h

    How to Generate a complex smart form for the Sales Order different pages has different page Layouts  explain me?

    in print program in interface when calling the form there should be some option to tell it to make a NEW spool everytime.
    I have it in mind for sap-script it is ITCPO-TDNEWID. Dont have it in mind for SAMRTFORMS but still it should work somehow similar.

  • The same code behaving different in two files.

    The same code behaving different in two files.
    in pro*c file it is returning rows
    in sql file it is not returning any rows.
    please suggest me.
    regards,
    prasad.

    please find the code.
    sql_stmt := 'SELECT rNum, dpcCode, sID, hDate, fBlock, '||
    'lBlock, recQty, fID, fName, ' ||
    'tSeqNo, sType, tDate, fStatCode, pDate, recCount, r ' ||
    'FROM (SELECT rownum rNum, DPC_CODE_ORIG dpcCode, ' ||
    'SENSOR_ID sID, ' ||
    'to_char(HEADER_DATE, ''YYYYMMDDHH24MISS'') hDate, ' ||
    'FIRST_BLOCK_NUMBER fBlock, ' ||
    'LAST_BLOCK_NUMBER lBlock, ' ||
    'RECORD_QUANTITY recQty, ' ||
    'FILE_ID fID, ' ||
    'substr(FILE_NAME,1,30) fName, ' ||
    'TRACE_SEQUENCE_NO tSeqNo, ' ||
    'SENSOR_TYPE sType, ' ||
    'to_char(TRAILER_DATE, ''YYYYMMDDHH24MISS'') tdate, ' ||
    'NVL(FILE_STATUS_CODE, ''NL'') fStatCode, ' ||
    'to_char(PROCESSED_DATE, ''YYYYMMDDHH24MISS'') pDate, '||
    'NVL(RECIRCULATE_COUNT,0) recCount, ' ||
    'ROW_NUMBER() ' ||
    'OVER(ORDER BY TRAILER_DATE DESC, LAST_BLOCK_NUMBER DESC) r ' ||
    'FROM logfc10t ' ||
    'WHERE DPC_CODE_ORIG = :IN_DPC_CODE ' ||
    'AND SENSOR_ID = :IN_SENSOR_ID ' ||
    'AND (((TRAILER_DATE <= TO_DATE(:IN_TRAILER_DATE, ''YYYYMMDDHH24MISS''))' ||
    ' AND (LAST_BLOCK_NUMBER < :IN_BLOCK_NUMBER)) ' ||
    ' OR (TRAILER_DATE < TO_DATE(:IN_TRAILER_DATE, ''YYYYMMDDHH24MISS'')))) ' ||
    'WHERE r = 1 ';

Maybe you are looking for

  • Logical path

    Hi All, How to create logical path in SAP. thanks in ADV.

  • Itunes ringtones and text tones not working??

    I downloaded a ring tone and a text tone, from the itunes store,and it was working great for about three weeks.  I lost charge on my phone yesterday and soon as I powered back up the default ringtones have seemed to take over even though my tones are

  • Edit Ps file in Ai

    im am completely new to illustrator and i am trying to edit a Ps drawing in Ai, but after i open my Ps file in Ai i can't use any of my tools on it at all! Please help

  • Bridge cs5 export missing

    Hi today i was watching this movie http://www.tipsquirrel.com/index.php/2010/04/adobe-bridge-cs5-new-features-overview/ but in my bridge cs5 the export tools are missing is normal? i have not send to hard drive blog email i tried to check up for upda

  • Migration or any other procedure to do the needful

    We are looking to migrate out Oracle 8 database to the latest database. How complex is the process going to be . The oracle 8 database is on a Windows server and has to be migrated to the latest version on the windows server machine. Can anyone pleas