|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Problem with forms
Hi, I have one problem. I want to submit the mail from preview page. So, I have two buttons Send and Cancel. Send will go to actionpage and sending the email while the Cancel Button should take to homepage whereas in my case, its not going.
Here is my code: <form name="mail" action="mailaction.cfm" method="post"> <input type="submit" name="Send" value="Send" > <form name="cancel" action="email_program.cfm" method="post"> <input name="cancel" type="submit" value="Cancel"> </form></form> Both are going to mailaction page. Any solution? |
|
#2
|
|||
|
|||
|
You're nesting the forms. Do this:
<form name="mail" action="mailaction.cfm" method="post"> <input type="submit" name="Send" value="Send" > </form> <form name="cancel" action="email_program.cfm" method="post"> <input name="cancel" type="submit" value="Cancel"> </form>
__________________
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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Problem with forms |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|