Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need JavaScript "Contact Us" page sample

Status
Not open for further replies.

Codepoet42

Programmer
Oct 21, 2005
12
US
I'm a Windows programmer but I'm not a Web developer. I need to create a simple "Contact Us" page using HTML and JavaScript if possible. I've searched online for a sample or snippet of such a page, but so far I haven't found what I need. All the source for similar pages I try to view apparently has an external .js page linked in for the functionality I need.

Simply put, I just need an input box where the user can type his or her email address, then a comments box and a Submit button. Then, I need the code that will email the comments and address to my email address. Pretty simple, I should think.

I'd appreciate any help on getting this done.

Thanks,
Codepoet42
 
Hi

Codepoet42 said:
All the source for similar pages I try to view apparently has an external .js page linked in for the functionality I need.
So what ? There is no technical difference between a script file linked into the page and the script itself pasted into the page.

And anyway, why you need JavaScript at all for a "cuntact Us" page ?

Sending a mail should be done server-side, so start with picking a suitable language then continue with searching the web for contact pages written in that language.

Feherke.
 
Thanks for the reply, Feherke. As I said, I'm not a Web developer, so I just assumed this type of thing could be done with Javascript.

So I'll pick a server-side language like Java, C#, Perl, PHP, etc, and then try to find sample source for a Contact Us page online. Thanks again for the tip.
 
Hi

Basically yes. Although I do not think too many people needs just a contact page, so is possible to not find one like that.

Maybe would be faster to search for a "form mailer" script and write the HTML document containing the [tt]form[/tt] separately.

And note that Java usually is used for web as servlet/JSP, for which you would need a servlet container. So better skip that.

Feherke.
 
I see. So it sounds like using a form mailer is the way to go. I'll look into that and avoid the Java route.

Thanks once again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top