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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:27:25+00:00 2026-05-13T20:27:25+00:00

Trying to detect when a user clicks Cancel but the $_POST on using var_export($_POST)

  • 0

Trying to detect when a user clicks “Cancel” but the $_POST on using var_export($_POST) outputs:-

array (
  'descr' => '',
  'formSubmitted' => '1',
  'backButton_x' => '36',
  'backButton_y' => '15',
)
Notice: Undefined index:  backButton in /home/mholt/development/BusinessPortico/class/requestHandler.class.php on line 81

Here is the HTML:-

<form method="post" class="cssform_dialog" enctype="multipart/form-data">
    <div id="dialogContent"></div> 
    <div id="dialogFooter">
    <div class="wrapperLeft"><input type="image" name="nextButton" id="nextButton" value="Yes" src="../new_assets/images/button-save.jpg"/></div>
    <div class="wrapperRight"><input value="Cancel" name="backButton" type="image" src="../new_assets/images/button-cancel.jpg"/></div>
    <input type="hidden" name="formSubmitted" value="1"/>
    </div>      
</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-13T20:27:25+00:00Added an answer on May 13, 2026 at 8:27 pm

    Because it is type='image' — a server side image map.

    A strict reading of the specification suggests that browsers should include the value for it, but not all do, so some just send the co-ordinates.

    You can look for name.x (or name_x in PHP), or not use an image input in a way it wasn’t designed for.

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

Sidebar

Related Questions

I'm trying to detect and change browser behavior if a user clicks on the
I am trying to detect when a user double clicks a header in a
I am trying to detect which web in sharepoint that the user is looking
I'm trying to determine how I can detect when the user changes the Windows
I am trying to detect touches, but the touchesBegan method is not being called.
I'm trying to detect when the user presses certain keys in a text box
I'm trying to detect when the user presses the Return key while in a
im trying to detect when a user make a left or right swing in
I'm trying to detect when a user touches down and up in a view.
I'm trying to let a user select an element on a page using their

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.