Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Javascript Order Form?

Posted on 2004-03-30
6
Medium Priority
?
1,317 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

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

Accepted Solution

by:
dlzone earned 800 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
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…
Suggested Courses

927 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