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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:57:09+00:00 2026-05-24T15:57:09+00:00

Say I have: <form method=get action=something.php> <input type=text name=name /> </form> <input type=submit />

  • 0

Say I have:

<form method="get" action="something.php">
    <input type="text" name="name" />
</form>

<input type="submit" />

How do I go about submitting that form with that submit button outside of the form, I think in HTML5 theres an action attribute for the submit but I’m not sure if thats fully cross-browser and if it isn’t is there anyway to do this?

  • 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-24T15:57:11+00:00Added an answer on May 24, 2026 at 3:57 pm

    Update: In modern browsers you can use the form attribute to do this.


    As far as I know, you cannot do this without javascript.

    Here’s what the spec says

    The elements used to create controls generally appear inside a FORM
    element, but may also appear outside of a FORM element declaration
    when they are used to build user interfaces. This is discussed in the
    section on intrinsic events. Note that controls outside a form cannot
    be successful controls.

    That’s my bold

    A submit button is considered a control.

    http://www.w3.org/TR/html4/interact/forms.html#h-17.2.1

    From the comments

    I have a multi tabbed settings area with a button to update all, due
    to the design of it the button would be outside of the form.

    Why not place the input inside the form, but use CSS to position it elsewhere on the page?

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

Sidebar

Related Questions

Let's say I have the following scenario: <form action=/something.php method=GET>Click me</div> <script type=text/javascript><!-- $('form').submit(function(e)
Say I have a form: <form action=form.php?redirect=false method=post> <input type=hidden name=redirect value=true /> <input
I have a container element say <div id=myContainer> <form action= method=post> Radio: <input type=radio
I have a problem in PHP. I am using <input type=file> to get the
Let's say I have an html form. Each input/select/textarea will have a corresponding <label>
Lets say i have a form which have the following : Name:TextBox Email:TextBox Age:TextBox
If I have the following struts.xml config: <action name=input> <result>/jsp/input.jsp</result> </action> <action name=result> <result>/jsp/result.jsp</result>
Say I have a form like: class GeneralForm(forms.Form): field1 = forms.IntegerField(required=False) field2 = forms.
Let's say you have a form with a component that displays data from a
Say you have a web form with some fields that you want to validate

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.