Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

submitting a form

that uses javascript



12:58 am on Feb 23, 2002 (gmt 0)

10+ Year Member

I'm trying to set up an order form that will email the contents to me. I've done numerous searches that are leading nowhere.
My first question is can a form be divided into seperate cells of a table?
The second question is: is there a good online javascript source for this? I only have a week to finish it, so I would like to find an opensource (right word?) code and modify it...
Can someone please help???


4:03 am on Feb 23, 2002 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

Yes, you can place the FORM tags outside a table and then place various elements of your form within the table cells.

You will probably be happier with results of you use a cgi script to email you the form. First, Javascript is turned off by 10% of users on average, and second, older versions of Explorer (before IE5) don't support mailto: tags within forms.

Many hosts have something standard already set up that you can customize -- cgi email [web.mit.edu] is one such widely used script, originally created at MIT.


5:21 am on Feb 24, 2002 (gmt 0)

WebmasterWorld Senior Member txbakers is a WebmasterWorld Top Contributor of All Time 10+ Year Member

There are several good, easy to install CGI scripts for this. Check out matt's script archive.

Also, you can look at my site and download one of these.

And, I;ve been using an ASP script instead of CGI which has been much easier on my server.


7:19 am on Feb 24, 2002 (gmt 0)

10+ Year Member

I'm trying to learn php, so I prefer to do this with php, if you have any experience with this, can you help me??? I have the email program working. THe form is sent to me (yeah!) BUT, the problem, is that some of the fields are required, so I have a logic checker within the php program. If a field is left blank, the program calls up another page, and then there is a chance to re-submit the order. BUT only the info that was logic checked is sent in the order. The other info (that's not required) is not sent in the email. BUT, if there are no fields left blank, all info is sent! HELP!!

Featured Threads

Hot Threads This Week

Hot Threads This Month