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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:25:24+00:00 2026-05-23T03:25:24+00:00

I want to pass information from an HTML form to a PHP page. My

  • 0

I want to pass information from an HTML form to a PHP page. My problem is that the data from the form is not getting submitted. What am I doing wrong ?

HTML FORM

<div id="go">
    <form method="get" action="client_authorized.php">
        <fieldset>
            <input type="text" name="query" class="input-text" />
            <input type="submit" value="Secure Client Access" class="input-submit" />
        </fieldset>
    </form>
</div>

client_authorized.php

<?php
     print $_GET['query'];
?>
  • 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-23T03:25:25+00:00Added an answer on May 23, 2026 at 3:25 am
    <div id="go">
        <!-- see the moved `target` attribute from other form element to here -->
        <form target="_blank" method="get" action="client_authorized.php">
            <fieldset>
                <input type="text" name="query" class="input-text" />
                <!-- <form target="_blank"> -->
                <input type="submit" value="Secure Client Access" class="input-submit" />
                <!-- </form> -->
                <!-- this form here is as useless as these comments are, define target in main form -->
            </fieldset>
        </form>
    </div>
    

    Basicly your second <form/> overrides first <form/> elements, therefore loses data when posted.

    Oh, by the way PHP’s print(); won’t print out your array data (at least I think so..), you should use print_r(); or var_dump(); instead.

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

Sidebar

Related Questions

i want to know how to pass information from my the page to fancybox(lightbox)
I'm playing with the flickr api and php. I want to pass some information
I want to pass an integer value to a form in .Net so that
I want to create a simple bookmarklet to pass some information from javascript to
I'm working on a project that involved getting information from two different servers. What
I have a form that will be populated by a bunch of information from
Can someone tell me or show me how to pass information from a HTML
I use something like below to pass information from one unbound form to another
I want to pass a few variables to another page. Currently I'm using response.redirect
i want to pass large variables to a PHP script on another server with

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.