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

The Archive Base Latest Questions

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

I am using a code to be put as a header: $fullurl=$_SERVER[‘PATH_INFO’]; echo ‘

  • 0

I am using a code to be put as a header:

$fullurl=$_SERVER['PATH_INFO'];
    echo '
      <form action="'. $fullurl .'" method="POST">
      <table width="1000" border="1" cellpadding="10" id="navigationBar">
          <tr>
            <td> <a href="/PoliticalForum/Registration.php">Register</a></td>
            <td> <a href="/PoliticalForum/controlPanel.php">Control Panel</a></td>
            <td> <a href="/PoliticalForum/checkEmail.php">Donate</a> </td>
            <td align="right">name:<input name="name" type="text" /></td>
            <td>password:<input name="pass" type="text" /> <input name="login" type="submit" value="Login" /> </td>
          </tr>
       </table>
           </form>
       ';

I include the header across page files with the require once. What I want is that the fullurl variable to obtain the full url of the page it is “required_once” on, and when I click submit, I want it to redirect to the page the header is on.. I added the url onto the action of the form..

But what I get is this:

Undefined index: PATH_INFO

I tried to use those instead:

explode('/', substr(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH),1));

$_ENV['PATH_INFO'];

But they didnt work too 🙁

  • 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-26T05:06:51+00:00Added an answer on May 26, 2026 at 5:06 am
      <form action="" method="POST">
    

    that’s all

    also, there is no point in echoing raw HTML
    use this code instead of yours

    ?>
      <form action="" method="POST">
      <table width="1000" border="1" cellpadding="10" id="navigationBar">
          <tr>
            <td> <a href="/PoliticalForum/Registration.php">Register</a></td>
            <td> <a href="/PoliticalForum/controlPanel.php">Control Panel</a></td>
            <td> <a href="/PoliticalForum/checkEmail.php">Donate</a> </td>
            <td align="right">name:<input name="name" type="text" /></td>
            <td>password:<input name="pass" type="text" /> <input name="login" type="submit" value="Login" /> </td>
          </tr>
       </table>
           </form>
    

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

Sidebar

Related Questions

I am using the following method to read header names in a table and
I'm using a code which will upload an image, put the image in the
Let me first put the code snippets here. I am just using the ASP.NET
I am using the following code, UIManager.put(JFrame.activeTitleBackground, Color.red); for change the toolbar color in
When using setTimeout , you have to put the code you want to execute
I'm using Smarty templates which call object methods. I've put the code on a
I'm trying to put some simple jQuery code into the Wordpress header (usually just
I'm using the SKELETON_JAR variable on my C++ code in one header. However, I
The PHP code won't delete item from database using $noteid. If I put a
I am interested in generating a C++ header using Apache Avro's code generation tool

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.