Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6717681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:52:51+00:00 2026-05-26T08:52:51+00:00

I have a form (form.php) that uses the following JS code in the header:

  • 0

I have a form (form.php) that uses the following JS code in the header:

<script type="text/javascript">
$(document).ready(function(){
$("a").click(function(){

$.post('test.php', function(data) {
        $('#test').html(data);
    });
    });
});
</script>

A have a link in form.php that once clicked I want a drop down to appear (without refreshing the page) e.g. “Display drop down”. The code in the drop down is managed in test.php.

Test.php pulls data in from another service. In order to do get this data I use data that is kept in the session e.g. $_SESSION[‘data_that_is_sent_to_another_service’].

I start the session in form.php but in order for the test.php to get the information from the other service I need to start a session at the start of test.php.

The code works, but I then get a warning saying:

Warning: session_start() [function.session-start]:
Cannot send session cache limiter - headers already sent
(output started at /..my directory.../test.php:1) in /...my directory.../hrdeals.php on line 4

How can I get this warning not to appear (without turning off warnings in PHP)?

Any help much appreciated.

Gregor

PS – the JS might not be correct, but it’s more the SESSION issue that I can solve

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:52:52+00:00Added an answer on May 26, 2026 at 8:52 am

    session_start() must be called before outputing anything to the browser. Check test.php and make sure there is no output.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have page1.php that uses a form to send the following data: <form action=page2.php
I have a PHP script that loads a function which uses Curl to log
I currently have a PHP form that uses AJAX to connect to MySQL and
The basics: I have a contact form that uses php to validate the forms.
I have a form field that uses some Javascript to format user input 'price'
I have an HTML form that uses a PHP file in the form tag
I have the following form that uses a GET to pass parameters to a
I have the following form that uses some jQuery to allow an array of
I have a form that uses PHP to calculate a total based on the
I have a jQuery login form that uses $post function to send credentials to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.