Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2012
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    name of sumbit on javascript....

    is use this codeto send form with text submit
    PHP Code:
      <a href="#" onclick="document.forms['form_name'].submit();">Submit  </a
    but i not know how to give name for this submit ...

    i need it because after the form send i check on php with submit was send....
    i have some diffrent submit ....
    so how can i send form with text submit and give it name
    thank

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,666
    Thanks
    6
    Thanked 1,006 Times in 979 Posts
    Is this a serious question? If you have a form with a submit button then use a submit button, not a link, to submit the form.
    Code:
    <input type="submit" name="b_submit" value="Submit">
    You can style that button with CSS to look exactly like a link (e. g. by removing background and border).


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •