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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:59:01+00:00 2026-05-26T09:59:01+00:00

$fullurl=$_SERVER[‘PATH_INFO’]; if(isset($_POST[‘name’]) && isset($_POST[‘login’]) && isset($_POST[‘pass’])) { echo ‘ <form action=.’$fullurl’. method=POST/> <table width=1000

  • 0
  $fullurl=$_SERVER['PATH_INFO'];
  if(isset($_POST['name']) && isset($_POST['login']) && isset($_POST['pass']))
  {   

            echo '
              <form action=".'$fullurl'." method="POST"/>
              <table width="1000" border="1" cellpadding="10" id="navigationBar">
                  <tr>
                    <td> <a href="/PoliticalForum/controlPanel.php">Control Panel</a></td>
                    <td> <a href="/PoliticalForum/checkEmail.php">Donate</a> </td>
                    <td> <a href="/PoliticalForum/mainHome.php">Logout</a> </td>
                  </tr>
               </table>
            ';
  }
  else
  { 

        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>
           ';
  }

I want the same url to be passed to action, but it gives me a mistake:

Parse error: syntax error, unexpected T_VARIABLE, expecting ‘,’ or ‘;’ in C:\xampp\htdocs\PoliticalForum\headerSite.php on line 9

and also will the $fullurl will give me the current page url?

  • 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-26T09:59:02+00:00Added an answer on May 26, 2026 at 9:59 am

    Replace

    <form action=".'$fullurl'." method="POST"/>
    

    with

    <form action="' . $fullurl .'" method="POST"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a php form like this. <form name=form1 id=mainForm method=postenctype=multipart/form-data action=<?php echo $_SERVER['PHP_SELF'];?>>
I am using a code to be put as a header: $fullurl=$_SERVER['PATH_INFO']; echo '
I have the following method: public object[] GetEventsByUser(DateTime start, DateTime end, string fullUrl) The
I'm working on this page: http://localhost/projectname/custom.php Both <?php echo $_SERVER['REQUEST_URI']; ?> and <?php echo
i have this jquery $('.delete_step').live('click', function(e) { e.preventDefault(); var delete_location = 'http//<?php echo $_SERVER[SERVER_NAME];
I have such an issue var url = index.php?id=123&sid=321; $.ajax({ type: POST, url: some.php,
I have the following code. PHP side: <?php print_r($_POST); print_r($_GET); die(); ?> In JavaScript:
I use this code to get the full URL: $actual_link = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']; The problem
On a php file I have include_once($_SERVER['document_root'] .'/path/to/file.php'); When I'm viewing the file which
Hi, Im using the following to generate full URL : urlHelper.Action(Detail, Ad, null, http)

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.