To combine HTML and ASP apges....

J

John Smith

Hi experts,

I have a simple HTML form with OK and Cancel buttons. The fields are
Group (drop down field), Name (drop down field), Summary (text fied),
and Description (text area field).

When the user fills in all the 4 fields with appropiate information
and clicks on OK, then he should get another page saying that "You
have successfully submitted the following information:
Group: Medical
Name: Kaizer
Summary: This is the test message
Description: Enter some detailed text here.

Right now, I have only one file
C:\InetPub\wwwroot\SubmitForm\submitForm.html.

I don't have any .asp file yet and I don't know where to insert the
..asp file in the html page so that when user clicks OK, the
information is displayed on the other page.

Can some one send me some examples of this sort?

Thansk,
parker.
 
L

Long - CM web hosting

: Hi experts,
:
: I have a simple HTML form with OK and Cancel buttons. The fields are
: Group (drop down field), Name (drop down field), Summary (text fied),
: and Description (text area field).
:
: When the user fills in all the 4 fields with appropiate information
: and clicks on OK, then he should get another page saying that "You
: have successfully submitted the following information:
: Group: Medical
: Name: Kaizer
: Summary: This is the test message
: Description: Enter some detailed text here.
:
: Right now, I have only one file
: C:\InetPub\wwwroot\SubmitForm\submitForm.html.
:
: I don't have any .asp file yet and I don't know where to insert the
: .asp file in the html page so that when user clicks OK, the
: information is displayed on the other page.
:
You need to write a formaction.asp file with VBScripts to process the
form submission. You can propably find some useful scripts with
google, but it won't fit your need entirely.

Do you have to use ASP? How about using a form processing service
like ours (www.webcharm.ca) or something similar? The form action
script is already written and all you have to do is mark it up.

Long
www.webcharm.ca - content management web hosting
 
B

Beauregard T. Shagnasty

Quoth the raven named Long - CM web hosting:
Do you have to use ASP? How about using a form processing service
like ours (www.webcharm.ca) or something similar? The form action
script is already written and all you have to do is mark it up.

Uhoh...
 
J

Jeff Thies

I have a simple HTML form with OK and Cancel buttons. The fields are
Group (drop down field), Name (drop down field), Summary (text fied),
and Description (text area field).

When the user fills in all the 4 fields with appropiate information
and clicks on OK, then he should get another page saying that "You
have successfully submitted the following information:
Group: Medical
Name: Kaizer
Summary: This is the test message
Description: Enter some detailed text here.

Right now, I have only one file
C:\InetPub\wwwroot\SubmitForm\submitForm.html.

I don't have any .asp file yet and I don't know where to insert the
.asp file in the html page so that when user clicks OK, the
information is displayed on the other page.

You won't need any ASP in that page with the form.

You will have to set the form's action to a server script that will do what
you need. You haven't said what that is, but typically it would be mailed.

Try Googling for "form mail ASP". There should be something in there that
satisfies you. This task is nearly trivial.

Microsnot has a news server, You can ask in one of their ASP groups if you
have any trouble (after you've done your basic homework).

I really though one of the ASP heads in this group would have fielded this
question, I'm in the opposing camp!

Cheers,
Jeff
 
H

Hywel Jenkins

Hi experts,

I have a simple HTML form with OK and Cancel buttons. The fields are
Group (drop down field), Name (drop down field), Summary (text fied),
and Description (text area field).

Right now, I have only one file
C:\InetPub\wwwroot\SubmitForm\submitForm.html.

I don't have any .asp file yet and I don't know where to insert the
.asp file in the html page so that when user clicks OK, the
information is displayed on the other page.

You could rename your submitform.html to submitform.asp and have it
submit to itself. You'd need to build conditions so that the page
knows whether it's supposed to be displaying the form or handling
submission results. IMO, the best thing to do is to have a script
handle the form submission and then either display the confirmation or
redirect to a page that does that.

There are also loads of free form handlers out there, some that you
can use remotely and some that you can install on your own server.
There are so many choices that it's not worth paying for this sort of
thing, particularly when it's so easy to write these yourself.
http://www.response-o-matic.com/
http://www.bignosebird.com/
http://php.resourceindex.com/
http://cgi.resourceindex.com/

To do what you want, which is pointless (what's the point of simply
displaying what the user has typed in?) just do something like

<html>
: Group: <% = Request.Form("Group") %>
: Name: <% = Request.Form("Name") %>
: Summary: <% = Request.Form("Summary") %>
Can some one send me some examples of this sort?

Have you googled for something like "asp form handler"?
http://www.4guysfromrolla.com/
http://www.asp101.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top