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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:30:42+00:00 2026-05-23T21:30:42+00:00

Is it possible in php to include a forms value into the action redirection?

  • 0

Is it possible in php to include a forms value into the action redirection?

For example:

<form method='POST' name='Select' action='customer.php?CID=xxxxx'>
<input type=text width='5' name='searchVal' />

where xxxxx is the value entered into the form.

I’ve tried a number of different ways and I’m just not figuring it out! (Still sort of new to php) Any help would be appreciated.

It was looking like I would have to use $_POST and $_GET. A little more information might be in order… customer.php displays a list of customers in order by ID, name, etc. The user currently clicks on the customer ID that they want to display the details for. I’m trying to add a box where they can just enter the customer number to get to the details quickly, but I still want to have the listing displayed. From what it is sounding like, I will have to do this as two separate programs…is that true?

  • 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-23T21:30:43+00:00Added an answer on May 23, 2026 at 9:30 pm

    I got it finally! It’s actually very simple!

    In the body of the code I put this:

    <form action='#_SELF' method='GET' name='Projected'>
    <input type=text size=5 name='CID' value='' title='Enter Customer number to display' />
    <a href='#' onclick='document.Projected.submit();' title='Enter Customer number to display'>Go</a>
    

    And at the top of the code I just do a:

    if (!isset($_GET['CID'])) { ...
    

    It works exactly the way I wanted it to!

    Thanks everyone for the help! I appreciate it! (And I’m learning more and more about PHP everyday!)

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

Sidebar

Related Questions

$(document).ready(function() { $(form#login_form).submit(function() { var login_username = $('#login_username').attr('value'); var login_password = $('#login_password').attr('value'); type: POST,
Is something like the following possible in PHP? $blah = 'foo1'; class foo2 extends
any idea how if the following is possible in PHP as a single line
Is it possible to use PHP's SimpleXML functions to create an XML object from
Possible Duplicate: Reference: Comparing PHP's print and echo Is there any major and fundamental
Possible Duplicate: Pass a PHP string to a Javascript variable (and escape newlines) I
Possible Duplicate: PDO Prepared Statements I'm using the mysqli extension in PHP and I'm
Is it possible to create images with PHP (as opposed to simply linking to
Is it possible to send messages from a PHP script to the console in
Is that possible to have a single PHP SOAP server which will handle requests

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.