Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Ezilon Directory   I Sell Pagerank   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 04-23-2006, 05:48 PM   #1 (permalink)
Contributing Member
 
ATLien's Avatar
 
Join Date: 10-13-03
Location: Atlanta, GA
Posts: 2,279
iTrader: 0 / 0%
ATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really nice
Send a message via AIM to ATLien
2 Submit Buttons on 1 Form

Ok, I am trying to setup a form that allows people to check items, and chose to delete them, or move them. How would I give a forum 2 submit buttons?

Could I just use a OnSubmit javascript command then send the script to submit.php?type=move? Can the onsubmit command be used on a submit button or does it have to be in the form tag?
__________________
ATLien is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 04-23-2006, 06:30 PM   #2 (permalink)
Contributing Member
 
exam's Avatar
 
Join Date: 04-20-06
Posts: 310
iTrader: 0 / 0%
Latest Blog:
None

exam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web pro
Do this and in your script just check which value is set $_REQUEST['submit_move'] or $_REQUEST['submit_delete']
Code:
<input type="submit" name="submit_move" value="Move em" /> <input type="submit" name="submit_delete" value="Delete em" />
exam is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-23-2006, 08:22 PM   #3 (permalink)
Contributing Member
 
ATLien's Avatar
 
Join Date: 10-13-03
Location: Atlanta, GA
Posts: 2,279
iTrader: 0 / 0%
ATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really nice
Send a message via AIM to ATLien
That is what i was going to try, I just wasn't sure if the submit button passes a varible with it. I will have to try it when I get some free time.
__________________
ATLien is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-23-2006, 09:20 PM   #4 (permalink)
Contributing Member
 
exam's Avatar
 
Join Date: 04-20-06
Posts: 310
iTrader: 0 / 0%
Latest Blog:
None

exam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web pro
Glad to have helped
exam is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP code for submit form in Dreamweaver gajer Web Design Lobby 1 02-26-2008 11:51 AM
trying to submit an email form natcguerreiro Coding Forum 7 12-05-2007 06:42 PM
Error popup on form submit ToddW Coding Forum 3 08-11-2006 05:07 AM
Form won't submit in IE al2six Coding Forum 5 05-16-2005 11:20 PM
Submit form results to iframe Spiral Coding Forum 4 08-10-2004 11:42 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 04:26 AM.
© Copyright 2008 V7 Inc