• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Simple question about submit

LEGEND ,
Jun 15, 2006 Jun 15, 2006

Copy link to clipboard

Copied

If I am trying to run a block of code when the submit button is clicked,
what do I use?

I tried:

<cfif request("Submit") = "Submit" Then>

Which is how I would do it in ASP, but didn't do it right. lol.

Thanks

--
Wally Kolcz
Developer / Support
ProjectProofing.com


TOPICS
Advanced techniques

Views

386

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 15, 2006 Jun 15, 2006

Copy link to clipboard

Copied

Ok, I changed the '=' to eq, but I am still getting an error.


Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 15, 2006 Jun 15, 2006

Copy link to clipboard

Copied

Ok, I also removed the 'then' which no I am recieving a

"Entity has incorrect type for being called as a function."

<cfif request("Submit") eq "Submit">

I have the submit button set to:
<input type="submit" name="Submit" value="Submit" />

Help!


Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 15, 2006 Jun 15, 2006

Copy link to clipboard

Copied

If you are trying to submit page to Itself and then trying to call a Function, Use some thing like this

<cfif isdefined('Submit')>
I am in the Block of Code
</cfif>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 16, 2006 Jun 16, 2006

Copy link to clipboard

Copied

LATEST
<cfif #ParameterExists(form.submit)#>
form procssing goes here ....
</cfif>

- Milind

Wally Kolcz wrote:
> Ok, I also removed the 'then' which no I am recieving a
>
> "Entity has incorrect type for being called as a function."
>
> <cfif request("Submit") eq "Submit">
>
> I have the submit button set to:
> <input type="submit" name="Submit" value="Submit" />
>
> Help!
>
>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation