N00b question: Simple JavaScript Form

heebiejeebieclu's picture

They have: 527 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

Abhishek Reddy's picture

He has: 3,348 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

They have: 5,633 posts

Joined: Jan 1970

is perl cgi?

Abhishek Reddy's picture

He has: 3,348 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: 267 posts

Joined: Nov 2001

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

heebiejeebieclu's picture

They have: 527 posts

Joined: Aug 2004

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

nicora's picture

He has: 267 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.

heebiejeebieclu's picture

They have: 527 posts

Joined: Aug 2004

ok, have the hosting. template availabe?

nicora's picture

He has: 267 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/

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.

He has: 1,758 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/

Andy

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.