Login | Register | FAQ
Anonymous

Posting a form- to send email - using javascript

+ Post a reply

Page 1 of 1


Posting a form- to send email - using javascript

by yvytty » Thu Apr 25, 2013 5:01 am

Hi, it's my first post here.
I know how to send an email using java, I just can't seem to get the write syntax for action="" and adding javascript.. I will show you code..

I've stuffed the javascript into the head- just now, so you can see what I'm trying to reference to.

Thanks in advance.

[HEAD]<link href="email.js" type="text/javascript" rel=""/>
<SCRIPT LANGUAGE="JavaScript" type="text/javascript" src="email.js"></script>
// JavaScript Document
<SCRIPT LANGUAGE="JavaScript" type="text/javascript">
var atSign = "@"
var firstPart = "conta"
var ispP1 = "ct"
var ispP2 = "wbda"
var ispP3 = "d.com"
var wholeAddress = firstPart + ispP1 + atSign + ispP2 + ispP3
var mToPart1 = "mai"
var mToPart2 = "lto:"
var mt = mToPart1 + mToPart2
var hrefP1 = "<a href= " + mt + wholeAddress + ">Click here to email me</a>"
</SCRIPT>

[BODY] <!--??????HEEEEEEEEELP-->
<form action="email.js" method="post" name="Contact" >
<h3>First Name</h3>
<input type="text" name="FirstName" />
<h3>Last Name</h3>
<input type="text" name="LastName"/>
<h3>Email Address</h3>
<input type="email" name="EmailAddress"/>
<h3>Confirm Email Address</h3>
<input type="email" name="EmailAddress"/>
<h3>Comments</h3>
<textarea name="Comments">
</textarea>
<br />
<br />
<input type="submit" name="submit" value="Send"/>
&nbsp;&nbsp;&nbsp;
<input type="reset" name="reset" value="Reset"/>
</form>
User avatar

yvytty


Re: Posting a form- to send email - using javascript

by muratsal » Thu Apr 25, 2013 10:04 am

you can do it with server side coding very easily.
User avatar

muratsal

  • Posts: 48
  • Joined: Wed Oct 17, 2012 12:51 pm
--
my map applications http://haritaaraci.com/

Re: Posting a form- to send email - using javascript

by XainPro » Thu Apr 25, 2013 6:18 pm

Use this code
document.forms["myform"].submit();
to submit a form
User avatar

XainPro

  • Posts: 2401
  • Joined: Fri Feb 17, 2012 8:10 pm

Re: Posting a form- to send email - using javascript

by yvytty » Thu Apr 25, 2013 11:45 pm

muratsal wrote:you can do it with server side coding very easily.


using php?
User avatar

yvytty


Re: Posting a form- to send email - using javascript

by yvytty » Thu Apr 25, 2013 11:46 pm

XainPro wrote:Use this code
document.forms["myform"].submit();
to submit a form


Thank you, will try this.
User avatar

yvytty


ij1a8s0e

by GeorgeHarPeale » Sun Aug 27, 2017 3:39 pm

https://www.flickr.com/groups/3532655@N ... 289469701/
https://www.flickr.com/groups/3934138@N ... 635768054/

1 person did To use inside of Adobe Photoshop Elements, follow these steps: Open the image .. Scratch Folder Location: Allows you to move or reset your memory cache.
https://bitbucket.org/snippets/gregorio ... w0/AArzB7/
https://bitbucket.org/snippets/masonmoir1998j0/4LAMdy/

Latest Uploads WhatsApp Messenger 2.16.80 beta (Android 2.1+). Install free WhatsApp for iPad, iPhone, iOS & PC Windows & Latest login Download this app from Microsoft Store for Windows 10 Mobile, Windows See screenshots, read the latest customer reviews, and compare ratings for WhatsApp.
https://bitbucket.org/snippets/sandysdg1967k3/R8Arp5/
https://bitbucket.org/snippets/juliusuck1965a6/9qnXkg/

I'm running windows 10 on my 2009 Macbook using bootcamp 5 drivers. Also tested on MBP 2010, MBP Retina 13 2012, MB Air 2009, MB Air 2012. The proprietary Broadcom driver worked well enough until it didn't, Jul 1, 2009 Extensive review of the white Apple MacBook mid 2009 (Intel Core 2 Duo P7450 Alongside the Broadcom BCM43xx draft-n WLAN adapter you'll also find Bluetooth glass trackpad and makes use with the weak BootCamp drivers in Windows easier.
http://www.csforum.co.uk/showthread.php ... 1#pid64961
http://forum.virtualnarealita.eu/viewto ... 3497#p3497
http://www.vmroms.com/index.php?topic=6656.new#new
http://geocachingchile.cl/foro/index.ph ... 43.new#new
http://forum.interier-portal.ru/phpbb/v ... 379#p24379

http://google.com/q=rmpbigh3
User avatar

GeorgeHarPeale

  • Posts: 1820
  • Joined: Mon Jul 10, 2017 5:19 pm
  • Location: Iceland


+ Post a reply

Page 1 of 1