This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > August 2004 > problem with coldfusion form
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
problem with coldfusion form
|
|
| SusanW 2004-08-10, 11:18 pm |
| I've created a coldfusion form that is passing to a sendform.cfm page. When
I submit, the result I get is just the code of the sendform page. What am I
doing wrong?
Susan
| |
| SusanW 2004-08-10, 11:18 pm |
| I just tried uploading the form and got this error on submission:
The error occurred in
C:\Inetpub\webworkscafe\simivalley\information\volunteer\sendForm.cfm: line
11
9 :
10 : <CFMAIL to="swohlgemuth@pinecrestschools.com"
11 : from="#Trim(FORM.contactEmail)#"
12 : subject="I'd like to volunteer at Pinecrest"
13 : server="mail.pinecrestschools.com">I have a contactEmail defined in the
form. Any ideas?Susan
"SusanW" <susanw@webworkscafe.com> wrote in message
news:cfbj63$ld9$1@forums.macromedia.com...
> I've created a coldfusion form that is passing to a sendform.cfm page.
When
> I submit, the result I get is just the code of the sendform page. What am
I
> doing wrong?
>
> Susan
>
>
| |
| Bill Horvath .:CMX:. 2004-08-10, 11:18 pm |
| What does it say above "The error occured in..."?
--
Bill Horvath
Free Tutorials for Studio MX
http://www.communitymx.com/free.cfm
Free 10 Day Trial
http://www.communitymx.com/joincmx.cfm
"SusanW" <susanw@webworkscafe.com> wrote in message
news:cfbjfo$lnf$1@forums.macromedia.com...
> I just tried uploading the form and got this error on submission:
>
> The error occurred in
> C:\Inetpub\webworkscafe\simivalley\information\volunteer\sendForm.cfm:
line
> 11
>
> 9 :
> 10 : <CFMAIL to="swohlgemuth@pinecrestschools.com"
> 11 : from="#Trim(FORM.contactEmail)#"
> 12 : subject="I'd like to volunteer at Pinecrest"
> 13 : server="mail.pinecrestschools.com">I have a contactEmail defined in
the
> form. Any ideas?Susan
>
>
>
>
> "SusanW" <susanw@webworkscafe.com> wrote in message
> news:cfbj63$ld9$1@forums.macromedia.com...
> When
am[color=darkred]
> I
>
>
| |
| SusanW 2004-08-10, 11:18 pm |
| Bill - This is exactly what it says:
The error occurred in :\Inetpub\webworkscafe\simivalley\information\volunteer\sendForm.cfm: line 22
20 : Work Phone Number: #FORM.workPhone#
21 : E-mail Address: #FORM.contactEmail#
22 : Magazine Sales: #FORM.magazineSale#
23 : Jump Rope for Heart: #FORM.jumprope#
24 : Math-A-Thon: #FORM.math#
I tried changing the "from" in the sendform.cfm to my own email address and the form went a little further than it had. But now is getting stuck at the first a many radio buttons I have. Each button has a unique name, which is on the sendform page.
Here is the page. http://webworkscafe.com/simivalley/...r/volunteer.cfm
Thanks for looking.
Susan
"Bill Horvath .:CMX:." <billhorvath@nospamcommunitymx.com> wrote in message news:cfbkvp$n0d$1@forums.macromedia.com...
> What does it say above "The error occured in..."?
>
> --
> Bill Horvath
> Free Tutorials for Studio MX
> http://www.communitymx.com/free.cfm
> Free 10 Day Trial
> http://www.communitymx.com/joincmx.cfm
> "SusanW" <susanw@webworkscafe.com> wrote in message
> news:cfbjfo$lnf$1@forums.macromedia.com...
> line
> the
> am
>
>
| |
| Bill Horvath .:CMX:. 2004-08-10, 11:18 pm |
| Susan,
I submitted the form, and checked the "Magazine" radio button, but then it
threw an error at line 23 (the next radio button after "Magazine"). I see
the user can select more than one option everywhere you have radio buttons.
This is not what radio buttons are for. You should use checkboxes instead,
and make the checked value of the checkbox "yes" or something affirmative to
show that the user has checked the box.
On the sendform.cfm page, you would need to process each checkbox like this:
<cfif isDefined("FORM.magazine")>
MagazineSales: #FORM.magazine#
</cfif>
This way, the page checks to see if the checkbox has been checked or not.
Also, I can submit the form without filling it out. You really need to
validate the form so that it cannot be submitted without filling some fields
out.
--
Bill Horvath
Free Tutorials for Studio MX
http://www.communitymx.com/free.cfm
Free 10 Day Trial
http://www.communitymx.com/joincmx.cfm
"SusanW" <susanw@webworkscafe.com> wrote in message
news:cfblov$nm7$1@forums.macromedia.com...
Bill - This is exactly what it says:
The error occurred in
:\Inetpub\webworkscafe\simivalley\information\volunteer\sendForm.cfm: line
22
20 : Work Phone Number: #FORM.workPhone#
21 : E-mail Address: #FORM.contactEmail#
22 : Magazine Sales: #FORM.magazineSale#
23 : Jump Rope for Heart: #FORM.jumprope#
24 : Math-A-Thon: #FORM.math#
I tried changing the "from" in the sendform.cfm to my own email address and
the form went a little further than it had. But now is getting stuck at the
first a many radio buttons I have. Each button has a unique name, which is
on the sendform page.
Here is the page.
http://webworkscafe.com/simivalley/...r/volunteer.cfm
Thanks for looking.
Susan
"Bill Horvath .:CMX:." <billhorvath@nospamcommunitymx.com> wrote in message
news:cfbkvp$n0d$1@forums.macromedia.com...
> What does it say above "The error occured in..."?
>
> --
> Bill Horvath
> Free Tutorials for Studio MX
> http://www.communitymx.com/free.cfm
> Free 10 Day Trial
> http://www.communitymx.com/joincmx.cfm
> "SusanW" <susanw@webworkscafe.com> wrote in message
> news:cfbjfo$lnf$1@forums.macromedia.com...
> line
> the
> am
>
>
| |
| SusanW 2004-08-10, 11:18 pm |
| Thanks, Bill. I appreciate your takng the time. I'll give it a try right
now.
I know about the validation. I just hadn't gotten to it yet.
Susan
"Bill Horvath .:CMX:." <billhorvath@nospamcommunitymx.com> wrote in message
news:cfbnjt$p8f$1@forums.macromedia.com...
> Susan,
> I submitted the form, and checked the "Magazine" radio button, but then it
> threw an error at line 23 (the next radio button after "Magazine"). I see
> the user can select more than one option everywhere you have radio
buttons.
> This is not what radio buttons are for. You should use checkboxes
instead,
> and make the checked value of the checkbox "yes" or something affirmative
to
> show that the user has checked the box.
>
> On the sendform.cfm page, you would need to process each checkbox like
this:
>
> <cfif isDefined("FORM.magazine")>
> MagazineSales: #FORM.magazine#
> </cfif>
>
> This way, the page checks to see if the checkbox has been checked or not.
> Also, I can submit the form without filling it out. You really need to
> validate the form so that it cannot be submitted without filling some
fields
> out.
>
>
> --
> Bill Horvath
> Free Tutorials for Studio MX
> http://www.communitymx.com/free.cfm
> Free 10 Day Trial
> http://www.communitymx.com/joincmx.cfm
> "SusanW" <susanw@webworkscafe.com> wrote in message
> news:cfblov$nm7$1@forums.macromedia.com...
> Bill - This is exactly what it says:
>
> The error occurred in
> :\Inetpub\webworkscafe\simivalley\information\volunteer\sendForm.cfm: line
> 22
>
> 20 : Work Phone Number: #FORM.workPhone#
> 21 : E-mail Address: #FORM.contactEmail#
> 22 : Magazine Sales: #FORM.magazineSale#
> 23 : Jump Rope for Heart: #FORM.jumprope#
> 24 : Math-A-Thon: #FORM.math#
>
> I tried changing the "from" in the sendform.cfm to my own email address
and
> the form went a little further than it had. But now is getting stuck at
the
> first a many radio buttons I have. Each button has a unique name, which is
> on the sendform page.
>
> Here is the page.
> http://webworkscafe.com/simivalley/...r/volunteer.cfm
>
> Thanks for looking.
> Susan
>
>
> "Bill Horvath .:CMX:." <billhorvath@nospamcommunitymx.com> wrote in
message
> news:cfbkvp$n0d$1@forums.macromedia.com...
in[color=darkred]
page.[color=darkred]
What[color=darkred]
>
>
| |
| SusanW 2004-08-11, 4:16 am |
| That worked perfectly Bill. Thank you so much. I only have one more
questions about it. When the results are received, there is a big vertical
space between the items that were checked. It appears to be leaving room for
the unchecked items, but not showing them. Is there any way to adjust this?
Susan
"Bill Horvath .:CMX:." <billhorvath@nospamcommunitymx.com> wrote in message
news:cfbnjt$p8f$1@forums.macromedia.com...
> Susan,
> I submitted the form, and checked the "Magazine" radio button, but then it
> threw an error at line 23 (the next radio button after "Magazine"). I see
> the user can select more than one option everywhere you have radio
buttons.
> This is not what radio buttons are for. You should use checkboxes
instead,
> and make the checked value of the checkbox "yes" or something affirmative
to
> show that the user has checked the box.
>
> On the sendform.cfm page, you would need to process each checkbox like
this:
>
> <cfif isDefined("FORM.magazine")>
> MagazineSales: #FORM.magazine#
> </cfif>
>
> This way, the page checks to see if the checkbox has been checked or not.
> Also, I can submit the form without filling it out. You really need to
> validate the form so that it cannot be submitted without filling some
fields
> out.
>
>
> --
> Bill Horvath
> Free Tutorials for Studio MX
> http://www.communitymx.com/free.cfm
> Free 10 Day Trial
> http://www.communitymx.com/joincmx.cfm
> "SusanW" <susanw@webworkscafe.com> wrote in message
> news:cfblov$nm7$1@forums.macromedia.com...
> Bill - This is exactly what it says:
>
> The error occurred in
> :\Inetpub\webworkscafe\simivalley\information\volunteer\sendForm.cfm: line
> 22
>
> 20 : Work Phone Number: #FORM.workPhone#
> 21 : E-mail Address: #FORM.contactEmail#
> 22 : Magazine Sales: #FORM.magazineSale#
> 23 : Jump Rope for Heart: #FORM.jumprope#
> 24 : Math-A-Thon: #FORM.math#
>
> I tried changing the "from" in the sendform.cfm to my own email address
and
> the form went a little further than it had. But now is getting stuck at
the
> first a many radio buttons I have. Each button has a unique name, which is
> on the sendform page.
>
> Here is the page.
> http://webworkscafe.com/simivalley/...r/volunteer.cfm
>
> Thanks for looking.
> Susan
>
>
> "Bill Horvath .:CMX:." <billhorvath@nospamcommunitymx.com> wrote in
message
> news:cfbkvp$n0d$1@forums.macromedia.com...
in[color=darkred]
page.[color=darkred]
What[color=darkred]
>
>
| |
| Bill Horvath .:CMX:. 2004-08-11, 4:16 am |
| Susan,
Try placing this before any of your CF tags:
<cfprocessingdirective suppressWhiteSpace = "Yes">
and after the last CF tag, use:
</cfprocessingdirective>
--
Bill Horvath
Free Tutorials for Studio MX
http://www.communitymx.com/free.cfm
Free 10 Day Trial
http://www.communitymx.com/joincmx.cfm
"SusanW" <susanw@webworkscafe.com> wrote in message
news:cfc2fk$507$1@forums.macromedia.com...
> That worked perfectly Bill. Thank you so much. I only have one more
> questions about it. When the results are received, there is a big vertical
> space between the items that were checked. It appears to be leaving room
for
> the unchecked items, but not showing them. Is there any way to adjust
this?
>
> Susan
>
>
> "Bill Horvath .:CMX:." <billhorvath@nospamcommunitymx.com> wrote in
message
> news:cfbnjt$p8f$1@forums.macromedia.com...
it[color=darkred]
see[color=darkred]
> buttons.
> instead,
affirmative[color=darkred]
> to
> this:
not.[color=darkred]
> fields
line[color=darkred]
> and
> the
is[color=darkred]
> message
C:\Inetpub\webworkscafe\simivalley\information\volunteer\sendForm.cfm:[color=darkred]
defined[color=darkred]
> in
> page.
> What
>
>
| |
| Bill Horvath .:CMX:. 2004-08-11, 11:15 pm |
| You're welcome!
--
Bill Horvath
Free Tutorials for Studio MX
http://www.communitymx.com/free.cfm
Free 10 Day Trial
http://www.communitymx.com/joincmx.cfm
"SusanW" <susanw@webworkscafe.com> wrote in message
news:cfdf5v$n6c$1@forums.macromedia.com...
> Worked like a charm. Thank you again Bill.
> Susan
>
> "Bill Horvath .:CMX:." <billhorvath@nospamcommunitymx.com> wrote in
message
> news:cfc6mt$8cq$1@forums.macromedia.com...
> vertical
room[color=darkred]
> then
I[color=darkred]
like[color=darkred]
to[color=darkred]
some[color=darkred]
:\Inetpub\webworkscafe\simivalley\information\volunteer\sendForm.cfm:[color=darkred]
> address
> at
> which
http://webworkscafe.com/simivalley/...r/volunteer.cfm[color=darkred]
submission:[color=darkred]
sendform.cfm[color=darkred]
> page.
>
>
| |
| SusanW 2004-08-13, 7:17 pm |
| I just tried uploading the form and got this error on submission:
The error occurred in
C:\Inetpub\webworkscafe\simivalley\information\volunteer\sendForm.cfm: line
11
9 :
10 : <CFMAIL to="swohlgemuth@pinecrestschools.com"
11 : from="#Trim(FORM.contactEmail)#"
12 : subject="I'd like to volunteer at Pinecrest"
13 : server="mail.pinecrestschools.com">I have a contactEmail defined in the
form. Any ideas?Susan
"SusanW" <susanw@webworkscafe.com> wrote in message
news:cfbj63$ld9$1@forums.macromedia.com...
> I've created a coldfusion form that is passing to a sendform.cfm page.
When
> I submit, the result I get is just the code of the sendform page. What am
I
> doing wrong?
>
> Susan
>
>
| |
| SusanW 2004-08-13, 7:17 pm |
| That worked perfectly Bill. Thank you so much. I only have one more
questions about it. When the results are received, there is a big vertical
space between the items that were checked. It appears to be leaving room for
the unchecked items, but not showing them. Is there any way to adjust this?
Susan
"Bill Horvath .:CMX:." <billhorvath@nospamcommunitymx.com> wrote in message
news:cfbnjt$p8f$1@forums.macromedia.com...
> Susan,
> I submitted the form, and checked the "Magazine" radio button, but then it
> threw an error at line 23 (the next radio button after "Magazine"). I see
> the user can select more than one option everywhere you have radio
buttons.
> This is not what radio buttons are for. You should use checkboxes
instead,
> and make the checked value of the checkbox "yes" or something affirmative
to
> show that the user has checked the box.
>
> On the sendform.cfm page, you would need to process each checkbox like
this:
>
> <cfif isDefined("FORM.magazine")>
> MagazineSales: #FORM.magazine#
> </cfif>
>
> This way, the page checks to see if the checkbox has been checked or not.
> Also, I can submit the form without filling it out. You really need to
> validate the form so that it cannot be submitted without filling some
fields
> out.
>
>
> --
> Bill Horvath
> Free Tutorials for Studio MX
> http://www.communitymx.com/free.cfm
> Free 10 Day Trial
> http://www.communitymx.com/joincmx.cfm
> "SusanW" <susanw@webworkscafe.com> wrote in message
> news:cfblov$nm7$1@forums.macromedia.com...
> Bill - This is exactly what it says:
>
> The error occurred in
> :\Inetpub\webworkscafe\simivalley\information\volunteer\sendForm.cfm: line
> 22
>
> 20 : Work Phone Number: #FORM.workPhone#
> 21 : E-mail Address: #FORM.contactEmail#
> 22 : Magazine Sales: #FORM.magazineSale#
> 23 : Jump Rope for Heart: #FORM.jumprope#
> 24 : Math-A-Thon: #FORM.math#
>
> I tried changing the "from" in the sendform.cfm to my own email address
and
> the form went a little further than it had. But now is getting stuck at
the
> first a many radio buttons I have. Each button has a unique name, which is
> on the sendform page.
>
> Here is the page.
> http://webworkscafe.com/simivalley/...r/volunteer.cfm
>
> Thanks for looking.
> Susan
>
>
> "Bill Horvath .:CMX:." <billhorvath@nospamcommunitymx.com> wrote in
message
> news:cfbkvp$n0d$1@forums.macromedia.com...
in[color=darkred]
page.[color=darkred]
What[color=darkred]
>
>
| |
| Bill Horvath .:CMX:. 2004-08-13, 7:17 pm |
| Susan,
Try placing this before any of your CF tags:
<cfprocessingdirective suppressWhiteSpace = "Yes">
and after the last CF tag, use:
</cfprocessingdirective>
--
Bill Horvath
Free Tutorials for Studio MX
http://www.communitymx.com/free.cfm
Free 10 Day Trial
http://www.communitymx.com/joincmx.cfm
"SusanW" <susanw@webworkscafe.com> wrote in message
news:cfc2fk$507$1@forums.macromedia.com...
> That worked perfectly Bill. Thank you so much. I only have one more
> questions about it. When the results are received, there is a big vertical
> space between the items that were checked. It appears to be leaving room
for
> the unchecked items, but not showing them. Is there any way to adjust
this?
>
> Susan
>
>
> "Bill Horvath .:CMX:." <billhorvath@nospamcommunitymx.com> wrote in
message
> news:cfbnjt$p8f$1@forums.macromedia.com...
it[color=darkred]
see[color=darkred]
> buttons.
> instead,
affirmative[color=darkred]
> to
> this:
not.[color=darkred]
> fields
line[color=darkred]
> and
> the
is[color=darkred]
> message
C:\Inetpub\webworkscafe\simivalley\information\volunteer\sendForm.cfm:[color=darkred]
defined[color=darkred]
> in
> page.
> What
>
>
| |
| SusanW 2004-08-13, 11:15 pm |
| Worked like a charm. Thank you again Bill.
Susan
"Bill Horvath .:CMX:." <billhorvath@nospamcommunitymx.com> wrote in message
news:cfc6mt$8cq$1@forums.macromedia.com...
> Susan,
> Try placing this before any of your CF tags:
> <cfprocessingdirective suppressWhiteSpace = "Yes">
>
> and after the last CF tag, use:
> </cfprocessingdirective>
>
> --
> Bill Horvath
> Free Tutorials for Studio MX
> http://www.communitymx.com/free.cfm
> Free 10 Day Trial
> http://www.communitymx.com/joincmx.cfm
> "SusanW" <susanw@webworkscafe.com> wrote in message
> news:cfc2fk$507$1@forums.macromedia.com...
vertical[color=darkred]
> for
> this?
> message
then[color=darkred]
> it
> see
> affirmative
> not.
> line
address[color=darkred]
at[color=darkred]
which[color=darkred]
> is
> C:\Inetpub\webworkscafe\simivalley\information\volunteer\sendForm.cfm:
> defined
page.[color=darkred]
>
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|