justuptime.com - monitor your servers & websites

N00b question: Simple JavaScript Form

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.
heebiejeebieclu's picture

He has: 524 posts

Joined: Aug 2004

Hi all.

Can you give me or do you know where I can find a simple JavaScript script that users will complete a question, their Name, their E-mail and it will send the results to me in an e-mail.

I think it can be done but just don't know how Shocked

heebie.co.uk has arrived. Don't get the heebie jeebies.

Te audire no possum. Musa sapientum fixa est in aure.
I cannot hear you. I have a banana in my ear

This site is best viewed using a web browser. Anyone trying to use a rhinoceros or elephant does so at their own risk

Abhishek Reddy's picture
Moderator

He has: 3,284 posts

Joined: Jul 2001

Not easily with Javascript. In any case, it would involve some crucial server-side scripting to handle sending the message. And it definitely won't be secure or reliable. Best bet is to make a plain old form and submit information to a PHP/ASP/CGI formmail script. Smiling

bja888's picture

He has: 902 posts

Joined: Feb 2004

is perl cgi?

Abhishek Reddy's picture
Moderator

He has: 3,284 posts

Joined: Jul 2001

CGI is a framework that can be used by Perl (CGI.pm). Much like ASP/VBScript. Smiling

nicora's picture

He has: 262 posts

Joined: Nov 2001

CGI stands for "Common Gateway Interface", which if my understanding is correct, all server side technologies use.

Joe Nicora
Webernet Wizard
See Me Create

heebiejeebieclu's picture

He has: 524 posts

Joined: Aug 2004

ug. so what would i need for that etc???

nicora's picture

He has: 262 posts

Joined: Nov 2001

what they are suggesting is to use a server side technology like ASP,PHP,CF or PEARL

you will need to choose one of those and have your site hosted where that technology is supported.

Joe Nicora
Webernet Wizard
See Me Create

heebiejeebieclu's picture

He has: 524 posts

Joined: Aug 2004

ok, have the hosting. template availabe?

nicora's picture

He has: 262 posts

Joined: Nov 2001

what technology?

i searched google for "simple php contact form" and got this... i'm sure you could get this to work

http://www.karlcore.com/programming/contactform/

Joe Nicora
Webernet Wizard
See Me Create

He has: 388 posts

Joined: Apr 2005

all you want is their details to be emailed to you rite
it dosent have to send credit card numbes so why not go for a simple solution and use a mailto form

He has: 77 posts

Joined: Apr 2005

I highly recomend that you learn PHP. It's worth its wait in gold. I don't want to discourage or irritate or set off any cgi or asp programers, but I really do think that PHP is the way of the future. It's been gaining on ASP for a long time and CGI is all but obsolete by comparison to PHP and ASP. Plus, PHP is an actual language of it's own. You don't have to learn it and then learn another language to run it.

andy206uk's picture
DeveloperModerator

He has: 1,742 posts

Joined: Jul 2002

If you can't run cgi on your server or need a quick easy solution have a look at these:

http://cgi.resourceindex.com/Remotely_Hosted/Form_Processing/

Andyk

Music Rants News and Reviews | My Photoblog | Blog of a Web Designer
Give a man a fish and you feed him for a day. Teach him to use the Net and he won't bother you for weeks.