Skip to content

.: Javascript what am I doing wrong?

Featured Replies

Hello all,

I'm having an Issue with my Javascript - The code can be seen below:

FirstName:

Email:

This doesn't work! If you have any ideas - Please post them up! I'm probably doing somthing really stupid!

Edit: I then tried with PHP and that didn't work either - I'm having a great day. :rolleyes:

<?php mail('[email protected]','Subect','email); ?>

Thanks in advance guys,

Rob

  • Author

Alex - That's PHP... While it's just the job...

How could I do it in Javascript? :D

No idea to be honest, i would always use PHP! If i had to use a contact form i would use the one i posted earlier and butcher it a bit to make it do what i wanted. No point reinventing the wheel!

I would imagine the problem is you have not given the form anything to send the mail with, all you have done is create a Email Us in a form. Javacript by its self cannot send email.

http://www.javascript-coder.com/javascript-form/javascript-email-form.phtml

  • Author

It works... Just not in IE! Stupid pile of ****.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.