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 7503521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:15:14+00:00 2026-05-29T21:15:14+00:00

I have one page A having this code snippet if (!var) { header(Location: .URL,

  • 0

I have one page A having this code snippet

if (!var) {
  header("Location: ".URL, true, 301);
  exit();
}

if (!var2) {
  header("Location: ". $url2, true, 301);
  exit();
}

I want to create a page in between URL/$url2 and A I call this one B.

How do I have to change A to give B the content of URL/$url2 without the user seeing it? I could use something like

Location: mypage.php?url=$url2

But the user could change that what I don’t want. If you recommend $_POST how would you do it? If not, what would you do?

I changed it to

session_start();
if (!var) {
  //header("Location: ".URL, true, 301);
  $data = URL;
  $_SESSION['keks'] = $data;
  require("transition.php");
  exit();
}

transition.php:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
   "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Frameset</title>
</head>
<frameset rows="50%,50%">
  <frame src="above.php" name="Navigation">
  <frame src="http://www.domain.com" name="Daten">
  <noframes>
    <body>
      <p>Something</p>
    </body>
  </noframes>
</frameset>
</html>

above.php:

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
    <title>
    </title>
  </head>
  <body>
    <div style="text-align: right;"><a href="<?php echo $_SESSION['keks']; ?>">Continue</a> 
    </div>
  </body>
</html>

Which leads to

<a href="">
  • 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-29T21:15:17+00:00Added an answer on May 29, 2026 at 9:15 pm

    Use a session cookie.

    On the page with the info you can save text etc into a session var like this:

    $data = 'hello';
    $_SESSION['xxx'] = $data;
    

    And get it back on the next page like this:

    echo $_SESSION['xxx'];
    // Hello
    

    Dont forget you need to run session_start(); before using sessions.

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

Sidebar

Related Questions

I have having difficulties on this one page login.php. Because of the nature of
I'm having this problem: I have two Google maps in one page, showing just
I am working with an ASP.NET MVC application. I have one master page having
In VS 2008, I have an ASP.NET content page having one master page. I
I am having a image in one page and i have to crop the
I'm doing an asp.net application with one page. In this page, I have one
I have one master page which applies to all pages in this website. On
I having some trouble figuring this problem out where I have one button which
I am having working with sandbox solution. i have one .aspx page in my
I have one page website only using HTML, CSS and JavaScript. I want 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.