BTW, the problem with the code wasn't the "CONTAINS", but the OR operator 
and general IF syntax, and the mission semi-colon.

Darryl Lyons

[EMAIL PROTECTED] wrote on 07/01/2005 02:52:10 PM:

> Heya,
> 
> Need some advise.I have the following code. 
> 
>  if (form.file2 CONTAINS '.doc') || (form.file2 CONTAINS '.txt'){
>    session.crw.file2 = '#Form.file2#';
>        }
> else{
>        session.crw.file2 = '1'
> }
> 
> I'm thinking the CONTAINS is incorrect. I'm trying to check the 
extention
> of the form file that is being uploaded before its uploaded. If they 
equal
> the above set it. Otherwise make it 1.
> 
> Pretty simple I thought but I'm thinking its slighty off...as it doesn't
> work.hehe
> 
> Anyway to make it work correctly.
> 
> Jeremy
> 
> ---
> You are currently subscribed to cfaussie as: 
[EMAIL PROTECTED]
> To unsubscribe send a blank email to 
[EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/



To unsubscribe from this email please forward this email to [EMAIL PROTECTED] 

This email message is confidential and may be privileged. If you are not the 
intended recipient
please forward the email to [EMAIL PROTECTED] and delete the original.
 
ABN AMRO Morgans Limited and its associates hold or may hold securities in the 
companies/trusts mentioned herein.
Any general advice included in this email has been prepared without taking into 
account your objectives, financial situation or needs.
Before acting on the advice, you should consider its appropriateness or discuss 
with one of our investment advisors.

ABN AMRO Morgans Limited (ABN 49 010 669 726 AFSL 235410) A Participant of ASX 
Group.
A principal member of the Financial Planning Association.


---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to