Solved

check to see if form has been submitted

Posted on 2008-10-20
8
2,776 Views
Last Modified: 2013-12-24
I am using this to check to see if a form has been submitted when using a image as the button for submit

<cfif IsDefined("Form.save.x")></cfif>

It does not work if i am using a standard HTML button for submit

what do i need to use when using a HTML button.

Thanks

Peter
0
Comment
Question by:CosmicKoder
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 8

Accepted Solution

by:
eszaq earned 450 total points
ID: 22761956
<CFIF IsDefined("form.fieldnames")></CFIF>
0
 
LVL 63

Assisted Solution

by:Zvonko
Zvonko earned 50 total points
ID: 22761973
Use only the submit button name.
Like this:

<cfif IsDefined("Form.yourButtonName")>Submitted</cfif>
0
 
LVL 8

Assisted Solution

by:eszaq
eszaq earned 450 total points
ID: 22762024
Zvonko:
Sure, specifying submit button name will work, too. Unless there are multiple submit buttons (to possibly define different action to be performed). Using #form.fieldnames# is more generic and will work every time. Just make sure that form method is "post", not "get" (in which case url variable scope will nedd to be used, of course)
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 63

Expert Comment

by:Zvonko
ID: 22762277
Hello CosmicKoder,
sorry but eszaq is right. He proposed before me the better solution.
The FORM.FieldNames is a variable generated by ColdFusion at EVERY form submit with form method set to POST.
If you do agree I can ask Community Support to open this question for new grading.

0
 

Author Comment

by:CosmicKoder
ID: 22762340
yes i agree, i didnt see his post when i assigned the points. Thanks!
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 22768676
Hello CosmicKoder, please note that your Question is now open again.
You can assign the points to eszaq Answer or split the points to all participiants that helped you. It is up to you.

0
 
LVL 8

Expert Comment

by:eszaq
ID: 22769754
Zvonko:
very noble of you, I can only bow. btw i am not he, i'm a girl
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 22772537
<|:-)
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, I will be creating today a basic tutorial on how we can create a Mail Custom Function and use it where ever we want. The main advantage about creating a custom function is that we can accommodate a range of arguments to pass to the Function and …
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question