...

View Full Version : Not sure if this is html or javascript



AlCapwn
03-16-2010, 04:19 AM
Okay so I want to make a form for people to fill out with their name and some more info, the main part that I would be stuck on is I want to add a check box list and each box they check I want a number to pop up at the bottom of the form. If they check boxes 1, 3, and 4 I want the total value to add up at the bottom of the form. I want the form emailed to me. I haven't had much experience in javascript but I noticed when I was reviewing it today it showed adding values x + y, and I don't know if you can make forms in javascript. I know you can make forms in html, but can you add values like javascript using html?

MrEnder
03-16-2010, 04:25 AM
Okay so I want to make a form for people to fill out with their name and some more info, the main part that I would be stuck on is I want to add a check box list and each box they check I want a number to pop up at the bottom of the form. If they check boxes 1, 3, and 4 I want the total value to add up at the bottom of the form. I want the form emailed to me. I haven't had much experience in javascript but I noticed when I was reviewing it today it showed adding values x + y, and I don't know if you can make forms in javascript. I know you can make forms in html, but can you add values like javascript using html?

HTML is only a foundation. Its a bunch of containers no more. You can't make these containers do anything fancy on their own. (except for marquee). Also forms are best done (when a new programmer) in PHP and HTML.

AlCapwn
03-16-2010, 04:59 AM
So can you not use javascript to create forms that would be emailed to you? Or can you use javascript and html in the same coding?

Dormilich
03-16-2010, 05:06 AM
So can you not use javascript to create forms that would be emailed to you?

letís put it this way, JavaScript can be disabled and it canít send you emails


Or can you use javascript and html in the same coding?

sure, but thatís rather kludgy.

MrEnder
03-16-2010, 05:07 AM
So can you not use javascript to create forms that would be emailed to you? Or can you use javascript and html in the same coding?

Javascript is client side. It can't access any type of files or anything. It can't send information to other files or off the page it is currently on.

PHP can do all that however. So if you wanted to do any of that you would use PHP. PHP is quite easy to learn.

And JS can't work without html.

all web sites use HTML.

btw (since ive seen this confusion before) HTML does not stand for Hotmail
HTML stands for Hyper Text Markup Language

This is html


<html>
<head>

</title>PAGE TITLE</title>

</head>
<body>

Hello World

</body>
</html>



This is Javascript notice it works INSIDE of HTML



<html>
<head>

<title>PAGE TITLE</title>
</head>
<body>

<script type="text/javascript">

document.write("Hello World");

</script>

</body>
</html>



Both codes do the exact same thing

Take note that the JS is PART of the HTML but is NOT HTML.
So no matter what you combine them together.

Arbitrator
03-16-2010, 10:02 AM
So can you not use javascript to create forms that would be emailed to you?If I recall correctly, you used to be able to use <form enctype="text/plain" action="mailto:email@example.com"> to directly send an email formatted like "Field_Name = Field_Value" with one line per field.

It's been maybe a decade since I did that (in IE5 or NN4?). I just tried it for a refresher and it doesn't seem to work anymore though; instead, my email client (Thunderbird) opens with a blank composition window in both Firefox and IE.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum