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

  • Home
  • SEARCH
  • 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 838385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:17:48+00:00 2026-05-15T05:17:48+00:00

At the top of my file I have PHP Code: if (!ISSET ($_POST[‘submit’])) which

  • 0

At the top of my file I have

PHP Code:
if (!ISSET ($_POST['submit']))
which tests if the submit has been hit, if not displays the form….

What I’d like to be able to to is generate a link that would be processed directly by the php code that the form would normally be submitted to… (does that make sense ?)

so a generated link in the code looks like ..

PHP Code:
echo '<a href="index.php?submit&s_type=' . $s_type . '&d_height=' . $d_height . '&j_ref=' . $j_ref . '&j_name=' . j_name . '">' . $j_ref . '</a>';
The link generated looks like ..

HTML Code:

index.php?s_type=partk&d_height=3312&j_ref=AS0001&j_name=j_name

I have tried setting “submit” with links like

HTML Code:

index.php?submit=submit&s_type=partk&d_height=3312&j_ref=AS0001&j_name=j_name

index.php?submit&s_type=partk&d_height=3312&j_ref=AS0001&j_name=j_name

How do I create a link that sets “submit so it gets processed rather than going through the form ???

  • 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-15T05:17:48+00:00Added an answer on May 15, 2026 at 5:17 am

    $_GET != $_POST

    So, either change $_POST check to $_REQUEST check, or change those ‘links’ to forms full of hidden prefilled elements, with just the submitbutton.

    Keep in mind links are sometimes precached, going the $_GET route is only acceptable if it does not alter data.

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

Sidebar

Related Questions

I have a linker command file that assigns the top address of the stack
I've been looking for some guidelines on how to layout PHP code. I've found
I have a PHP script which includes one or two other libraries it depends
In my PHP code I have this: $filename = 'data.xml'; $xml = file_get_contents($filename); $data
PEP 8 states: Imports are always put at the top of the file, just
The top of my web.xml file looks like this: <?xml version=1.0 encoding=UTF-8?> <web-app xmlns=http://java.sun.com/xml/ns/j2ee
Is it bad practice to hack the main application_top.php file of osCommerce for making
I don't know how php.ini was configured since I don't have access to it.
On top of a dual quad core physical host, I would like to run
On top of my head, especially for C/Linux developer: ack git-bz colorgcc colordiff moap

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.