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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T16:35:42+00:00 2026-06-08T16:35:42+00:00

I am using an eCommerce engine script that uses a different search method. Instead

  • 0

I am using an eCommerce engine script that uses a different search method.

Instead of a URL using GET like this:

http://search.com/searchc?q=the+query

It uses

http://search.com/searchc/the+query

How can I make a form to POST or GET to that, because this form makes the URL

http://search.com/searchc/?q=the+query


<form action="/searchc/" method="post">
    <input type="text" id="q" name="q">
    <input type="submit" value="go">
</form>

Also tried this (get or post do not work for both of these)

<form action="/searchc/" method="post">
    <input type="text" id="" name="">
    <input type="submit" value="go">
</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-06-08T16:35:44+00:00Added an answer on June 8, 2026 at 4:35 pm

    The reliable way has two components: Client-side JavaScript manipulation, which turns form submission to a request as needed, and (as backup for non-JS situations) a simple server-side redirect utility which receives a request from the form and redirects it as modified.

    Something like this (for the GET case):

    <form action="http://www.example.com/redirect"
      onsubmit="location.href = document.getElementById('f1').value + 
      document.getElementById('q').value; return false">
    <input type="text" id="q" name="f2">
    <input type="submit" value="go">
    <input type=hidden id=f1 name=f1 value="http://search.com/search/">
    </form>
    

    Here http://www.example.com/redirect is some server-side form handler that just reads the form fields and picks up fields named f1, f2,…, concatenates them into a single string, and redirects using it as a URL. As a CGI script, this would be

    use CGI qw(:standard);
    $dest = '';
    $i = 1;
    while(param('f'.$i)) {
       $dest .= param('f'.$i++); }
    print "Location: $dest\n\n";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently developping a search engine using Solr for an ecommerce website. So I
This is my first time using Google Analytics Ecommerce Tracking to get data for
I work at an eCommerce company. Our DBA recently told me that using SQL
I am implementing an eCommerce application using ASP.Net. I would like to know if
I'm building an e-commerce search and I am using Lucene.Net as my search engine.
I'm working on an eCommerce application that's using quite a bit of JavaScript and
i'm using WP_QUERY to get posts. the problem is that i want to sort
I am working on an ecommerce solution using opencart, that has a bunch of
We have an ecommerce website that displays groups of products by category using a
I'm using a third-party ecommerce search provider, but we're hosting the template files so

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.