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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:12:18+00:00 2026-05-15T12:12:18+00:00

Currently I have a simple form with a plus and minus on it and

  • 0

Currently I have a simple form with a plus and minus on it and a value in the middle. I am trying to create a href link under the plus and under the minus to call self but to either indicate which link was used (either plus or minus) or to pass the value after being incremented or decremented.

I do not want to use JavaScript/client side scripting because some browsers do not allow it but I am using PHP. I also did not want to use $_GET as other data needs to be sent to ‘self’ so I am using $_POST.

Any idea’s are welcome.

snippet of code

var_dump($_POST);
< form action="?" method="post" action="Submit" >
< input type="hidden" id="currentvalue" name="currentvalue" value="2" / >

< div class="minus" >< a href="" onclick="document.forms[0].submit();return false;" > - < /a > < /div >
< div class="currentvalue">'.$_POST["currentvalue"].'< /div >
< div class="plus"> + < /div >

Thanks

  • 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-15T12:12:18+00:00Added an answer on May 15, 2026 at 12:12 pm

    You cannot submit an HTML form without using the button or input type=image/submit elements or JS.

    What you can do:

    1. Specify an image for input type=image
    2. Apply a bg image to input type=submit and killing the text via text-indent:-999em; for modern browsers and line-height for IE
    3. Split areas into separate forms if you really have to
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to get more in to TDD. Currently keeping it simple
I currently have a simple form that when you click the save button will
I have a simple form that I am currently posting back to the server
I have a simple Form with a single TextBox, plus OK and Cancel buttons.
Currently in a simple form i have the following declared table in code: declare
Im about to create a very simple online event reservation application and currently have
There is probably is simple fix for this but I currently have code similar
Currently, I have some basic code to play a simple tone whenever a button
I have a search form in an app I'm currently developing, and I would
I have a simple form that takes some fields and adds them to the

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.