INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Using more than one submit button

Using more than one submit button

(OP)
I understand it is possible to use more than one submit button in a form, with different 'Name' or 'Value' attributes, in order to perform different functions on the next page visited. I have looked this up on the web but found conflicting ways of doing it. None of which seem to work. Basically I want to have 'Update', 'Delete' and 'Cancel' buttons on the form in order to perform the required function on the next page.

Any idea on the code for this.

RE: Using more than one submit button

Hi

Quote (jjack46)

None of which seem to work.
Show us such code and explain how is not working.

All the examples we could show you are certainly already out there on the web. So I think the problem is in how are you trying to do it. Show us.

Feherke.
feherke.github.io

RE: Using more than one submit button

You don't say how you are processing the output of the form but sending the info to a Perl script, you could use:-

CODE

<form action='script.pl'>
<input type='submit' name='submit' value=''Update'>
<input type='submit' name='submit' value=''Delete'>
<input type='submit' name='submit' value=''Cancel'>
</form> 

Keith
www.studiosoft.co.uk

RE: Using more than one submit button

(OP)
The sites I looked were very inconsistent and confusing but I've worked it out now. Many thanks.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close