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

  • SEARCH
  • Home
  • 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 7705035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:48:08+00:00 2026-05-31T23:48:08+00:00

okay….i’m sending some variables over forms…i tried with borh session and cookie, i’m getting

  • 0

okay….i’m sending some variables over forms…i tried with borh session and cookie, i’m getting an error :undefine index

sending

session_start();
$host="localhost";      // Host name
$username="";           // Mysql username
$password="";           // Mysql password
$db_name="test";        // Database name
$tbl_name="test3";      // Table name
$tbl_name1="scan";      // Table name

$invoiceno = $_GET['invoiceno'];
//$_SESSION['invoice_no']=$invoiceno;

$expire=time()+60*60*24;
setcookie("user1", "$invoiceno", $expire);

to this from

session_start();
$host="localhost";      // Host name
$username="";           // Mysql username
$password="";           // Mysql password
$db_name="test";        // Database name
$tbl_name="test3";      // Table name
$tbl_name2="scan";
$db_name1="test1";      // Database name
$tbl_name1="test2";     // Table name

$invoiceno=$_COOKIE["user1"];                           // session invoice no. 

echo $_COOKIE["user1"];

can someone help me…thank you

  • 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-31T23:48:08+00:00Added an answer on May 31, 2026 at 11:48 pm

    Your handheld not supporting cookies. Try use cookiless session (not recommended).

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

Sidebar

Related Questions

Okay, I've looked all over the internet for a good solution to get PHP
Okay so im working on this php image upload system but for some reason
Okay, none of the previous questions I have seen with this error seem to
Okay, I have setup up a handler for a div click but for some
Okay I am having some problems with being able to change bitmaps when a
Okay... so I have a fairly interesting error... I declare a FileWriter called file,
Okay, I'm reading about Linux kernel development and there are some code snippets using
Okay I got some good advice for Mobile Detection but still having an issue
Okay, so I've tried to use sort to vector of items so the size
Okay, first some background, I can't use any javascript library except YUI for this

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.