Can I use sessions to solve a problem?

I have a set of three pages called say "pick", "edit" and "confirm". The edit page is on one of a set of 5 spry tabbed panels.The server is unix and the machine uses windows 64 bit and CS5.5.
Pick uses a drop down list to select an item to edit. It then sends the record index to the edit page where it is edited.
Edit then updates the page and sends the user to the confirm page where he told that the edit was OK and is given a link that takes him back to the edit page.
So far everything works fine - the record is edited and the user knows it. But he needs to be able to check it, and that's the problem..
While this link does send the user back to the previous page, it does not send any info as to which record it should pull out.
I have tried to store the value of the record index in a session, but just cannot get it to be available ion the confirm page.
As soon as I enter <?php session_start() ?> on line 1 of any page, I get the message :
Warning: Cannot modify header information - headers already sent on line 1  on the pick page and line  62 on the edit page as soon as a button is pressed, or, in the case of the edit page, as soon as live View is active.
This line is where the page is directed to the next page using a stock Dreamweaver udate record behaviour.:
  $updateGoTo = "editok.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
    $updateGoTo .= $_SERVER['QUERY_STRING'];
}header(sprintf("Location: %s", $updateGoTo)); // This is line 62.
I have checked all the lines for white space, made sure that the instruction is on line 1 and have no include files other than connection files, all with no white space. Matters not whether I put them before or after the session start instruction.
I even created a new page with just a form and a field to send and this gives the same message - this was not on a spry panel..
PHP ini has the path to sessions set up, and sessions are visible there.
I get the feeling that the tabbed panels could be part of the problem, as when the user lands on the edit page, he has to select the second panel, so some output must have been sent to the browser.and that would kill the session I think?
Is there a way of passing the info from page to page without using sessions?

Thanks Burak - I was aware of the bom problem.
Bregent - I think that I found the problem. I was using a set of 5 spry tabs with a form on each and trying to update them one at a time. To get to any of the forms, I had to open a tab, so I assume that the browser generated some output and that was why I had problems with the sessions.
So I found out how to set up the tabs within the same form, which meant that I could edit all 5 pages at one go, and only post them on the last one. I got the idea from a post on the spry forum which links to a page containing  code which does this at
http://www.soleproductions.com/oakley/tabform.php
With some slight modification, this gave me a better solution with no need for sessions.
This still left the problem of passing the edit page location to the confirm page. Its such a long time since I have used parameters that I had forgotten them.
However, a little modification to the update record server behaviour enabled me to pass the correct value from the $_POST array to the confirm page.
Like so:
From this:
$updateGoTo = "editok.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
    $updateGoTo .= $_SERVER['QUERY_STRING'];
}header(sprintf("Location: %s", $updateGoTo));
To this:
  $updateGoTo = "editok.php?pick=" . $_POST['club_index'] . "";
  if (isset($_SERVER['QUERY_STRING'])) {
    $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
    $updateGoTo .= $_SERVER['QUERY_STRING'];
  header(sprintf("Location: %s", $updateGoTo));
Using this code there was no problem with "headers already sent."
None of the info is particularly sensitive.
Thanks for the interest.
Howard Walker

Similar Messages

  • HT201401 my home button is not working don't know why.my mobile phone is in warranty so please repair it or give me another phone so i can use it.please solve my problem i am in tension because of this problem

    my home button is not working don't know why.my mobile phone is in warranty so please repair it or give me another phone so i can use it.please solve my problem i am in tension because of this problem

    either you can call apple care
    or
    alternatively take it back to the reseller and have them give you new phone . unless obviously the button broke down due to mishandling

  • I have the iPhone 4 recently became weak Wi-Fi where I can not use the Internet only when sitting Bejjani router, Can anyone help me in solving this problem please iPhone 4, iOS 7.0.3

    I have the iPhone 4 recently became weak Wi-Fi where I can not use the Internet only when sitting Bejjani router, Can anyone help me in solving this problem please
    iPhone 4, iOS 7.0.3

    There's a whole lot to read in your post, and frankly I have not read it all.
    Having said that, this troubleshooting guide should help:
    http://support.apple.com/kb/TS1538
    In particular, pay attention to the mobile device support sections near the bottom, assuming you have already done the items above it.

  • Can  you help me to solve this problem (user-exit for xd02)

    Hi!
    can  you help me to solve this problem?
    transaction XD02
    To pass the length of the field to 7 max    for    KNA1-SORT   (Search criterion 1 )
    To pass the length of the field to 4  max   for   ADRC-SORT2  (Search criterion 2)
    It is not possible to save  the customer card as long as the search criterion is not univocal
    I seek one to use-exit .
    Thanks.

    Hi,
    Check the exit SAPMF02D.
    Regards,
    Surinder

  • Please can you help me to solve my problem  ( I have iphone is linked with Apple ID and I forgot that Apple ID and I can't remember it , I need thats Apple ID to activate my iphone ,,, what should I do ?

    please can you help me to solve my problem  ( I have iphone is linked with Apple ID and I forgot that Apple ID and I can't remember it , I need thats Apple ID to activate my iphone ,,, what should I do ?

    mohammed aljasim wrote:
    there are many people that error is happened with them and one of this people is me ,, Apple must be find the solution for this problem
    You are absolutely WRONG. Apple bears no responsibility in this at all. YOU purchased a STOLEN phone. You are guilty of receiving stolen property at best. Take it back to wherever you bought it and demand a refund. Failing that, turn it over to the police. You got ripped off. I'm sorry you wasted your money, but there is NOTHING Apple or anyone else can do for you. Only the rightful owner of the phone can unlock it.

  • In mac os 10.6.6 i can use shift alt F11 to  incremental decrease volume , but now in LION i can't use it , what is the problem ???

    in mac os 10.6.6 i can use shift alt F11 to  incremental decrease volume , but now in LION i can't use it , what is the problem ???

    HellO:
    What type of keyboard do you have?
    In any event, system preferences>keyboard has a chck box to change the behavior of "F" keys.
    Barry

  • How can we use Session Variable in Answers or Analysis?

    How can we use Session Variable in Answers or Analysis?

    Again, duplicate cross-posting!
    See rukbat 's post here: Re: BI Apps 7.9.6.3(Agent Issue)

  • How can i use session to save properties?

    How can i use session to save properties?

    Hi,
    Session Tracking is one of the most powerful features of Servlets and JSP. Basically, the servlet engine takes care of using Cookies in the right way to preserve state across successive requests by the same user. Your servlet just needs to call a single method (getSession) and it has access to a persistent hashtable of data that's unique to the current user.
    Otherwise Visit Servlet Essentials tutorial
    http://www.novocode.com/doc/servlet-essentials/

  • I want to ask you if i will buy the ipad mini wifi from this site,after can i use it in Europe without problems?

    i want to ask you if i will buy the ipad mini wifi from this site,after can i use it in Europe without problems?
    Thank you

    Wifi is wifi (generally) and you should be able to take your american bought device (presuming that's what you mean) to europe and get it online.
    The biggest issue you may face is to make sure you have a plug adapter. Your power brick is rated for world wide power variances you'll just need an adapter to make the plug fit eurpoean plugs.

  • I have the following Imac and Iphoto 11 in Finder folder I upgrade the iphoto file  and  all the latest event files, can you help how to solve the problem? Thank you  Model Name iMac    Model Identifier:     iMa

    I have the following Imac and Iphoto 11 in Finder folder I upgrade the iphoto file  and I lost all the latest event files, can you help how to solve the problem? Thank you
    Model Name:     iMac
    Model Identifier:     iMac8,1   Processor Name:     Intel Core 2 Duo
    Processor Speed:     2.4 GHz

    http://support.apple.com/kb/HT2638?viewlocale=en_US&locale=en_US

  • Can i using RMI to solve performance issue

    I have two database which in USA and CHINA, and a web application which located on USA, if the application connect to USA DB it is ok, i think no performance issue, but if connet to china DB, i sure that has even throgh VPN. So can i using RIM technology to solving the issue? Or using another solution. Thanks

    So can i using RIM technology to solving the issue?It sounds like your problem is with Network latency.
    I assume your web application connects to the database directly through JDBC and you're proposing to add a middle layer of RMI. Doing this will not reduce network latency - however if you're clever about how you serialize your resultsets, you can reduce the amount of network traffic and improve performance.
    Have a look at this thread about compressing RMI data:
    http://forum.java.sun.com/thread.jspa?threadID=606187&tstart=0
    Note that compressing the data will add processing overhead at both ends.
    Also remember to override the readObject/writeObject methods in the objects you're serializing.

  • Can we use session variables in BI publisher's Data Model SQL Query?

    Hi Experts,
    We need to implement Data level security in BI Publisher 11g.
    In OBIEE we do so by using session variables, so just wanted to ask if we can use the same session variables in BI Publisher as well
    ie can we include the where clause in the Data Models SQL Query like
    Where ORG_ID = @{biServer.variables['NQ_SESSION.INV_ORG']}
    Let me know your views on this.
    PS: We are implementing EBS r12 security in BI Publisher.
    Thanks

    Read this -> OBIEE 11g: Error: "[nQSError: 23006] The session variable, NQ_SESSION.LAN_INT, has no value definition." when Creating a SQL Query using the session variable NQ_SESSION.LAN_INT in BI Publisher [ID 1511676.1]
    Follow the ER - BUG:13607750 - NEED TO BE ABLE TO SET A SESSION VARIABLE IN OBIEE AND USE IT IN BI PUBLISHER
    HTH,
    SVS

  • I have a problem in the answers to the questions on my account I can not buy anything, please solve the problem, I have a problem in the answers to the questions on my account I can not buy anything, please solve the problem

    I have a problem in the answers to the questions on my account I can not buy anything, please solve the problem

    You are not addressing Apple here. And your post is a bit confusing. See Klaus's answer in this thread:
    https://discussions.apple.com/thread/5228474?tstart=0

  • Using Pacifist to solve media problem..please help

    I captured a lot of footage and ended up with many files with the extension -av. Now I know that that is bad, but at the time of capture I had no idea. I have been working for months with these files. I just opened my project and they are now all offline. The files are in my drive, but they won't open in quicktime or reconnect through fcp. The only thing I did before opening my project file was install software updates. People are mentioning major problems with Quicktime 7.4.1 and recommend that I downgrade using Pacifist.
    Does it sound like the downgrade will solve the problem?
    Has anyone ever had other unforeseen problems after using Pacifist?
    Thanks.

    Check to see how that drive the media is capture to is properly formatted as "Mac OS Extended." It sounds as if it may be formatted as "FAT32."
    -DH

  • Hi, my name is Amit, my hot corners stop working after some time. Have to go to mission control to reset them, however they stop again after some time. This is annoying. Can someone please assist to solve this problem? Thanks Amit.

    Hi my name is Amit, after upgrading to OS X Maverick I often have problem of my Hot corners stop working after a short period of time. I have to go to mission control and have to reset them for them to start working again. However this is temparory and they stop working again and this is quite annoying. Can someone suggest a cure to this problem please. I will be grateful. Thanks Amit.

    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    ~/Library/Preferences/com.apple.dock.plist
    Right-click or control-click the line and select
    Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item selected. Move the selected item to the Desktop, leaving the window open. Log out or restart the computer and test. If there's no change, put the item you moved back where it was, overwriting the one that may have been created in its place. Log out again. Otherwise, delete the item you moved.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

Maybe you are looking for

  • Server 2012 and 2012 R2 do not allow access to all 7 optical SAS drives?

    The following problem occurs with Windows Server 2008 R2, 2012 and 2012 R2, Datacenter or Standard.  I have an external SAS enclosure with seven optical drives and one hot-swap SAS/SATA bay that connects using two SFF-8088 connectors (no internal SAS

  • HT201317 Photo stream tripling my photos

    I set up a photo stream to be made public and it worked properly at first.  Now it's showing three sets of the same photos and I can not change it without deleting all my photos from all devices.  Is there a way around this?

  • Variant Length 45 char limit - Help

    Friends, Iam developing a program to download all variants from current environment which are to be uploaded on other environment. Im using RS_VARIANT_CONTENTS FM. Problem is : when I Extract I get only 45 length limit for the variable value on the s

  • ITunes thinks daughter's Shuffle is my iPad

    I've been trying to charge and put music onto my daughter's 4th-gen iPod Shuffle by connecting to my MacBook Pro running OS X 10.9.2. Regardless of which USB port I use (any one of three), iTunes detects the shuffle as my iPad -- displays my iPad dev

  • French accents in an English application

    I have an application using English as primary language. The application runs fine. But when I incorporate words with French accents such as "Québec" on the page, the word "/HTML" shows up at the footer of the page when I run the application. When I