Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 25th, 2008, 11:30 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 471
Thanks: 0
Thanked 1 Time in 1 Post
Default

Via a link <a href="thisform.html">

Is that what you mean?

dartcoach
 
Old April 25th, 2008, 11:46 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

No, I meant the actual address in the browser. For example, this page has an address of http://p2p.wrox.com/topic.asp?TOPIC_ID=70866 which means it's server over http by a web server. In order for your ASP pages to be processed correctly, you need to request them over http.




---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
 
Old April 25th, 2008, 11:54 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 471
Thanks: 0
Thanked 1 Time in 1 Post
Default

That's the link:

http://www.cioinc.com/NBX3000/testform.html

that brings up the form. Do inside do I need to use the full path in the <a href> statement?

dartcoach
 
Old April 25th, 2008, 12:23 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

This is a different page than the one you posted the code for, right? I don't see any reference to an ASP page; all I see is a form that tries to submit mail using the local mail client using form action="mailto:....".

Are you sure this is the right page?

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
 
Old April 25th, 2008, 12:44 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 471
Thanks: 0
Thanked 1 Time in 1 Post
Default

If you look at the 2nd post with the code - that's the one that tries to use the emailwithcdo.asp



dartcoach
 
Old April 25th, 2008, 12:59 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I know that, but that's not the point, is it? You provided a link to a real web page to show us how the code is executed. If that's not the real page you're working with, then there is no point in looking at it is there?

I don't know what timezone you are in, but if you need this fixed before 5 o'clock, you better provide a lot more information. Just for fun, here it goes again:

How are you requesting that page?
How you open this page in the browser?
Are you sure IIS is setup correctly?
Have you created a simple Hello World ASP page that shows ASP works?
Are you using the right form to submit to an ASP page?
Are you no longer using mailto in your action attribute?
Are you sure the page even submits and is not stuck in the browser due to a client side JavaScript issue?

And so on and so forth.

Some of these questions can only be answered by you; others can be answered if you'd post the right link to the right page; not to a page that is irrelevant because you're not using it.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
 
Old April 25th, 2008, 01:09 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 471
Thanks: 0
Thanked 1 Time in 1 Post
Default

I'm sorry I'm so stupid! What do you mean?? Requesting the page.

The link I sent you is the page that has the form that tries to send the email.

To open the page in the browser is a link from another page using the <a href statement.
IIS, allows asp - it's working - I used a date check asp to see.

I'm pretty lost, and I imagine you're pretty frustrated, sorry. Thanks for your help.


dartcoach
 
Old April 25th, 2008, 01:44 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I am not saying you are stupid; I am saying you're not providing the answers to my questions that may lead you to the solution.

With "requesting a page" I mean the address you type in the browser. There's quite a difference between opening file://C:\SomeFolder\SomeFile.html or http://somedomain/SomeFile.html. In the former case you can't use ASP as only the file system is used, not a web server. For me to determine if you're doing the right thing, I need to know how you view the page. Since you don't provide a link to it, it's impossible for me to see how it looks like.

The example you posted contains ASP code that somehow, someday needs to be executed. From what I can see, the page will send an e-mail when Request.Form("btnSend ") has a value. In order for that to evaluate to true, you need an ASP page (or an HTML page) that submits to an ASP page. So, you request something like http://somedomain/SendMail.asp which contains a form with a number of fields. This page can then post back to SendMail.asp which checks whether you clicked the btnSend button and sends the mail.

All fine and well, except when things don't work.

In your case you are working on (/ showing us) two different solutions to send e-mail. On one hand you have a page that uses a form action="mailto...." that sends mail using the client's mail program. You posted code for that and showed us a live page using that code.
On the other hand you have a form that submits to an ASP page using action="SomePage.asp" to send the e-mail from the server. You have posted the code for that page, but you are not showing us a URL of how you can access / request that page and see it working live in the browser.

Obviously you are having problems with the ASP version so I don't see the point in looking at the one that uses mailto:. So, in summary, show us the real page that uses ASP to send the e-mail, not the one using mailto.

Does this make any sense? Do you understand the difference between a form with action="EmailWithCDO.asp" and action="mailto:...." and do you see the two are different things?

Imar
 
Old April 25th, 2008, 02:11 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 471
Thanks: 0
Thanked 1 Time in 1 Post
Default

Imar,
I start at my main website: www.cioinc.com
I click on the left nav NBX V3000 - it takes me to an html page with an IFrame
There are 3 pictures at the bottom of the page(inside the IFrame)
I click on the on marked Basic - it takes me to another html form.
on the bottom of that form, there is a click to request more info button
which brings up the form for user input that is using the emailwithcdo

The first set of code i sent you, I'm no longer using - the only reason I'm doing this is to get away from the mailto...
because I want to use server side vs the local email.


dartcoach
 
Old April 25th, 2008, 02:22 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Pfff, finally. For my future knowledge and ability to help others, what was it that stopped you from posting:

The page I am using is: http://www.cioinc.com/NBX3000/testform1.html

for the past 6 posts or so? That would have helped a lot as it's the page using ASP not mailto.....

Try removing the If statement from the code that send the mail or change it to:

If Request.Form("btnSend") & "" <> "" Then

Does it work then?

Also, you haven't really answered my other questions with regards to the difference between mailto and an ASP page, whether the page posts back or not (submits to the server) and so on.

You have to help me help you....

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to verify email exists? keyvanjan ASP.NET 2.0 Basics 1 November 30th, 2009 08:20 AM
[Resolved] Use of Required Field Validators snufse ASP.NET 2.0 Basics 5 March 11th, 2008 09:53 AM
Required Fields aRtware Access 2 May 26th, 2006 01:27 PM
how to verify email exists? keyvanjan ASP.NET 1.0 and 1.1 Professional 1 October 15th, 2005 12:06 PM
How to verify if form is shown pavel VB How-To 3 October 1st, 2004 01:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.