macromedia.coldfusion.cfml_general_discussion
[Top] [All Lists]

Re: Multiple buttons for same action page

Subject: Re: Multiple buttons for same action page
From: "JR "Bob" Dobbs"
Date: Wed, 7 Nov 2007 15:55:56 +0000 UTC
Newsgroups: macromedia.coldfusion.cfml_general_discussion

I agree with SafariTECH, take a look at using cfform instead of using your own 
scripts.  Its pretty good for creating basic client side javascript validation.
 Note that you should always have server side validation because client side 
javascript can be bypassed.

 
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_f_13.html
#2433198
 
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_i_07.html
#1100379
 
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=validateData_0
1.html

 <!--- note: sample not tested --->
 <cfform action="action_page.cfm" method="post" name="myForm">

 <cfinput name="supplier_name" type="input" required="yes" message="Please 
enter a Supplier Name" />

 <input type="submit" name="button_1" value="SAVE AND ADD PACK SLIP">

 <input type="submit" name="button_2" value="ASSIGN TO PROCUREMENT">


 </cfform>


<Prev in Thread] Current Thread [Next in Thread>