Current location: Hot Scripts Forums » Programming Languages » ASP » ASP and JMail....best method


ASP and JMail....best method

Reply
  #1 (permalink)  
Old 06-30-03, 02:02 PM
jimthepict jimthepict is offline
Newbie Coder
 
Join Date: Jun 2003
Location: Scotland
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
ASP and JMail....best method

I am a complete newbie to scripting languages, and am trying to learn myself ASP. I have been practising making up forms with conditional regions that will be mailed upon submitting the form.

The main JMail code I have placed in an include, which contains information to check that the posting page is on the same site as the script to prevent spamming. But I have placed the <%set jmail=nothing%> on the same page as the form. Is this acceptable? Will it still close the Jmail function correctly. The script works and sends the mail, I am just not sure if this is good practice.

Also, I have given the jmail include an .asp extension though I have noticed many includes have a .inc extension.....does this matter?

Thank you for taking time to help a newbie and apologise if my questions seem pretty basic.

__________________
Jim Dawson

Last edited by jimthepict; 06-30-03 at 04:22 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 06-30-03, 04:47 PM
Shane Shane is offline
Coding Addict
 
Join Date: Jun 2003
Location: Maryland, US
Posts: 268
Thanks: 0
Thanked 0 Times in 0 Posts
Jim,

your practice seems fine.

In fact, renaming your include file from .inc to .asp is a great practice. If someone where to call your include file from the browser, they would be able to download the ".inc" version, but the ".asp" version would be parsed. This will prevent outside users from viewing your source.

I wouldn't worry about anything. Your code seems to be fine.
__________________
Shane Bauer
Microsoft Certified Professional (MCP) - ASP.NET
ASP/ASP.net, C#, VB/VB.NET, PHP, Perl, SQL
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 06-30-03, 04:59 PM
jimthepict jimthepict is offline
Newbie Coder
 
Join Date: Jun 2003
Location: Scotland
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Well that seems encouraging Shane. I'll keep hammering away, eventually it should all come together.

Thanks for taking the time to reply to my post.
__________________
Jim Dawson
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 08:53 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.