Solved

Javascript Order Form?

Posted on 2004-03-30
6
1,302 Views
Last Modified: 2007-12-19
I need to create an order form for my page. A form where the user can enter information and can be submitted to an e-mail address. Something easy to install and add to. I was hoping it could be Javascript but can be something else. If someone could please provide me with a link to a good form.

Thanks
0
Comment
Question by:Tutalian
  • 3
  • 2
6 Comments
 
LVL 16

Expert Comment

by:jaysolomon
ID: 10724063
here is an order form
http://www.irt.org/instant/chapter8/sales/index.htm

here is some ways to email (however emailing should be done via server side language such as perl/cgi, asp, php, jsp)

http://www.irt.org/instant/chapter8/mailto/multiple.htm

http://www.irt.org/instant/chapter8/mailto/simple.htm

0
 

Author Comment

by:Tutalian
ID: 10727309
Sorry...I wasn't being specific enough. I need an order form where the user can enter (type info into fields) information. THen submit, sending to one of my e-mail addresses). I don't really care what language it's written in, as long as it has easy implementation.

eg.

First Name: _____________
Last Name: _____________
Manufacturer: _____________
Item Number: _____________

Submit
0
 
LVL 16

Expert Comment

by:jaysolomon
ID: 10727372
What language does your server support?
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:Tutalian
ID: 10727879
Perl/cgi, PHP, ASP
0
 

Accepted Solution

by:
dlzone earned 200 total points
ID: 10730407
==Main.asp==
<html>
<body>
<form action = "sendmail.asp" method = "post">
First Name : <input type = "text" name = "first">
Last Name : <input type = "text" name = "last">
Manufacturer : <input type = "text" name = "manu">
Item Number : <input type = "text" name = "item">
<input type = "sumit">
</form>
</body>
</html>


==sendmail.asp==
<%
strFirstName = Trim(Request.Form("first"))
strLastName = Trim(Request.Form("last"))
strManufacturer = Trim(Request.Form("manu"))
strItem = Trim(Request.Form("item"))

set mymail = server.createobject("CDONTS.NewMail")
mymail.from = "xxx@yyy.com"
mymail.to = "xxx@yyy.com"
mymail.cc = "xxx@yyy.com"
mymail.subject = "Info from form"

mymail.bodyformat = 0
mymail.mailformat = 0
mymail.body = strFirstName & " " & strLastName & " " & strManufacturer & " " & strItem
mymail.send
set mymail = nothing

%>


Format the mail body whatever way you want.
0
 

Author Comment

by:Tutalian
ID: 10973575
I also want to add popups to this form. Is this possible? Also, how do I set up the submit button once I have all the information in the form?
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question