php forum
php mysql forum
php mysql smarty
 
Topic Options
#103279 - 11/09/01 07:46 PM 2 form actions
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Little Rock, AR
I know in html, 2 actions in a form is not possible. But is it possible in a cgi script?

Also is it possible to combine two different input names/values?

Top
#103280 - 11/10/01 12:11 PM Re: 2 form actions
Dave_L Offline
Member

Registered: 08/16/00
Posts: 356
Loc: Virginia, USA
The CGI script simply outputs the HTML (containing the form) to the browser. The browser doesn't care whether the form was generated by a script, or whether it was on a static HTML page.

Could you provide a more specific example of what you want to do?

Top
#103281 - 11/10/01 05:58 PM Re: 2 form actions
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Little Rock, AR
I'm trying to make a registration script that will register someone for both my forums and email.

I think some of the username values may be different between each other. And it needs to spit out a confirmination page that i can customize and/or an error page if one can't through.

Top
#103282 - 11/10/01 08:35 PM Re: 2 form actions
Dave_L Offline
Member

Registered: 08/16/00
Posts: 356
Loc: Virginia, USA
A form can only have one "action", but a form can have any number of submit buttons. You can also have multiple forms on a single HTML page.

The script can easily generate a confirmation or error page based on processing the submitted form.

If you haven't dealt with scripts that process forms, there are some easy examples here:

http://perl.coders-net.com/perl/ch19_06.htm

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks