Connecting Tech Pros Worldwide Forums | Help | Site Map

how to send an email to the server from client using javascript?

Newbie
 
Join Date: Feb 2007
Posts: 1
#1: Feb 14 '07
hi all! i m building one website in that i want to send the name ,password and query to server . i have taken submit button. After clicking submit my data should reach to server. So how can i do that? i prefer javascript at client side and ASP at server side.

msquared's Avatar
Administrator
 
Join Date: Aug 2006
Location: Dublin, Ireland
Posts: 10,886
#2: Feb 14 '07

re: how to send an email to the server from client using javascript?


Quote:

Originally Posted by jollie

hi all! i m building one website in that i want to send the name ,password and query to server . i have taken submit button. After clicking submit my data should reach to server. So how can i do that? i prefer javascript at client side and ASP at server side.

Moving this question to the Javascript forum.
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#3: Feb 14 '07

re: how to send an email to the server from client using javascript?


Quote:

Originally Posted by jollie

hi all! i m building one website in that i want to send the name ,password and query to server . i have taken submit button. After clicking submit my data should reach to server. So how can i do that? i prefer javascript at client side and ASP at server side.

You don't need javascript for that. You can use simple HTML, e.g.
[HTML]<form id="myForm" name="myForm" action="myActionpage.asp" method="post">
Name <input type="text" name="name"><br/>
Password <input type="password" name="password"><br/>
Query <textarea name="query"></textarea><br/>
<input type="submit" name="submit" value="Submit">
</form>[/HTML]
Reply