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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:35:32+00:00 2026-05-24T18:35:32+00:00

Good evening Stack members, I have no experience with that im about to ask

  • 0

Good evening Stack members,

I have no experience with that im about to ask so it may be a totally stupid idea.

We have a few different pages that ask for different bits of information

On each form we have the post to the next page , then we have php code to collect the information from the previous page and fill in the next page – we have bits of code on the second page that rely on the first page to be filled in else they will just stay blank.

What we were wondering is .. is that any way for us to deny requests via the web if someone went to page2.php it redirected to page1.php or just said access denied but yet allowed access if our form posted information to page 2

I’m sorry if this is quite messy and i do agree if you rate me down but im just a beginner and trying to figure this out for myself , I understand a lot of you are quite knowledgeable and would be grateful for any information at all

Thanks

So basically to recap

Page 1 > User fils in information > pass > page2.php

User tries to enter page2.php into their browser url window >> denied >> redirect

  • 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-24T18:35:33+00:00Added an answer on May 24, 2026 at 6:35 pm

    on page 1 put a hidden value in the form,

    <input type="hidden" id="page" name="page" value="1" />
    

    on page 2

        if($_POST['page'] !='1'){
        header('Location: http://www.example.com/page1.php');
        exit();
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good evening. I found a few questions that seemed to ask the same thing
Good evening, In my app that I'm currently developing, I have a class that
Good evening, i need to know how can i have one .h file that
Good evening I have a JTable that I built with a TableModel how to
Good evening Stack Overflow, I've got a css issue tonight. I have a fixed-positioned
Good evening fellow stackers, I have a mutex and threaded related question about //
Good Evening, The problem is that i have both xcode 3.2 and xcode 4
Good Evening All, I have a textbox that needs to accept 14 digits plus
Good evening all, I've been working on an MD5 tool in C# that takes
Good evening everyone. I am puzzling over the oddity that the jQuery Marquee plugin

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.