|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
simple form submit question
<cfoutput query="getids">
<form name="Form" method="post" action="contentman_conclude.cfm?delid=#id#"> <tr> <td>#id#</td> <td>#makeID#</td> <td>#modelID#</td> <td>#AuctionReserve#</td> <td>#bidCount#</td> <td><font <cfif val(#highestBid#) gt val(#AuctionReserve#)>color="red"<cfelse>color="black"</cfif>>#highestBid#</font></td> <td><input type="submit" name="Submit" value="Conclude"><input type="submit" name="Submit2" value="Withdraw"> </td> </tr> </form> </cfoutput> I have a cfoutput query and a form inside like above. Depending on whether submit or submit2 is hit, I want different things to happen on the contentman_conclude.cfm page (which it goes to). Submit (Conclude) basically concludes the auction and Submit2 (Withdraw) simply deletes a row, how can I get the contentman_conclude.cfm page to know which one was hit? maybe using cfif isdefined or something? |
|
#2
|
|||
|
|||
|
On the action page, if you do a <cfdump var="#form#"> you'll be able to see what it coming in through the FORM scope. Depending on which button they press you should see a corresponding variable in the FORM scope that you can test for and process however you need to.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
|||
|
|||
|
thanks man cfif isDefined Form.Submit2 seemed to work tho
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > simple form submit question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|