Current location: Hot Scripts Forums » General Web Coding » JavaScript » submit button


submit button

Reply
  #1 (permalink)  
Old 07-14-04, 04:58 PM
tcooper tcooper is offline
Newbie Coder
 
Join Date: Nov 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
submit button

Can I submit a php form with a submit button that is not located on the form?

I would like to have a submit button on the page just not on the form. Can this be done? This way I could submit different forms with the same button if I choose to do so.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 07-15-04, 03:22 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
All you need is a button like this one:
<input type="button" value="Submit" onclick="document.form_id.submit()">
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to submit a form using a link, not a submit button? Myke311 HTML/XHTML/XML 3 01-12-05 02:26 AM
submit button?? tcooper PHP 3 07-15-04 05:46 AM
submit form with more than one href submit and no submit button adlinfanus JavaScript 1 03-09-04 07:45 AM
POST without submit button AbelaJohnB PHP 5 01-22-04 08:56 AM
image submit button problems Pepe PHP 10 12-22-03 09:15 PM


All times are GMT -5. The time now is 12:19 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.