ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 8th, 2003, 08:07 AM
ultimadg ultimadg is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 3 ultimadg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Angry I am desperarte....

thought i was on the right track but...since you see me posting here assume I was way off track.

Each item on the menu has the some additional items associated with it.
ex. "name0" "quantity0" "beans0" "meat0" "extraMeat0"

Since my menu has over 100 products in it you can see why I do not want to send the generated results to the Resturant without looping over it to see if the Quantity is GT < 0. And removing that from the order that is generated.

I was trying to get the quanity and If the quanity is < 0 i wanted to display it in the email along with the items that also end in "0" (meat0, beans0. extraMeat0, name0).

Please advise on your feedback and ideas. TY in advance

I would appreciate any help you offer me.

If you have a better solution I am all ears.


Regards
Steve

Reply With Quote
  #2  
Old October 8th, 2003, 10:42 AM
wickmo wickmo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: London, Ontario
Posts: 7 wickmo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
more info?

I might have missed another post somewhere, but I don't really understand your post. What is the system you're trying to write and what is the problem?

And for reference '>' is the "Greater Than" and '<' is "Less Than."

Reply With Quote
  #3  
Old October 8th, 2003, 10:51 AM
ultimadg ultimadg is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 3 ultimadg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Re: I am desperarte....

I have an order form URL

the form action is written in coldFusion.

I only want to pass the Item and the associated properties to an email if the Items have a quanity of 1 or greater.

That way the resturant does not get a huge print out of their menu each order and have to find the ITEMS that were ordered. It will be real simple.

I sorta have something working now if you go to the URL above. but its so GHETTO.

Thanks for looking at this for me.

Steve

Reply With Quote
  #4  
Old October 8th, 2003, 11:15 AM
wickmo wickmo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: London, Ontario
Posts: 7 wickmo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
mailform.cfm

When the user clicks submit it look like it takes them to mailform.cfm, which I can't see, but assume cycles through the products and checks if they are 0 or not.

First, I would add default='0' to all the "Product" inputs. Without defaults they will be null and that could mess things up when comparing them to zero.

Then, in the mailform.cfm I would use something like:

<cfmail from="theirEmail" to="yourEmail" subject="ORDER">
<cfoutput>
<cfloop from='1' to='Number of Product' index='i'>
<cfset tmp = "Form.Product" & i>
<cfif #tmp# gt 0>PRINT OUT INFO FROM POSITION i</cfif>
</cfloop>
</cfoutput>

Not sure if this is what you are looking for, but let me know if you need more info, or something along different lines.

JEff

Reply With Quote
  #5  
Old October 8th, 2003, 11:18 AM
ultimadg ultimadg is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 3 ultimadg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Re: mailform.cfm

Yes that is basically what I have now.

I guess that seems to be the best situation

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > I am desperarte....


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT