www.webdeveloper.com
Results 1 to 3 of 3

Thread: Using the same button twice in a form

Hybrid View

  1. #1
    Join Date
    Dec 2011
    Posts
    23

    Using the same button twice in a form

    Hello, I am a noob, anyways,
    I'm working with a form inside of a .PHP file, I can't figure out how to get both <input type='button'>'s to work at the same time. The first one works just fine, but the second one doesn't work when clicked.

    I think the problem has to do with the same id='reSearch' used in both buttons, if i change the id for one of the buttons it still won't work.

    Code:
    <form id='reForm' method='post' name='form2' action='index.php' enctype="multipart/form-data" >
    
    
    <input type='button'  class='rebutton btn btn-primary'  id='reSearch' value='<?php print $relanguage_tags["Search"];?>'>
    
    <input type='button'  class='rebutton btn btn-primary'  id='reSearch' value='<?php print $relanguage_tags["Search"];?>'>
    
    
    </form>

  2. #2
    Join Date
    Oct 2012
    Posts
    78
    Is the ID referring to some function in an external javascript? Which is where your problem will lye.

  3. #3
    Join Date
    Dec 2011
    Posts
    23

    thanks

    That is probably the case, thanks for your response, I'm gonna try to find that JavaScript file so i can modify it.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles