Click to See Complete Forum and Search --> : sending form data to an email address


yuda
06-26-2003, 10:07 PM
Hi I've got a form on my website and I'm trying to get the data sent to my email address I've played around with the code a bit I've had it partially working (I needed to go through and email program like communicator or pmail which I don't want to do) anyway here's the chunk of code I'm using so far any tips would be appreciated

<form name=x action="mailto:kjnis@yahoo.co.nz" enctype="text/plain" onsubmit="return checkform()" method=post>

Jona
06-26-2003, 10:17 PM
The code you posted will work for the users who do not have Web-based email, however you should use a server-side language to process form data and have it emailed to you. Common server-side languages that are used include: ASP, PHP, CGI/Perl and JSP.

[Jona]

chrismartz
06-26-2003, 10:35 PM
how would you do this in .asp coding?

Jona
06-26-2003, 10:38 PM
Originally posted by sirhcchris3
how would you do this in .asp coding?

I don't know ASP. Ask in the ASP forum.

[Jona]

yuda
06-26-2003, 10:50 PM
Originally posted by Jona
The code you posted will work for the users who do not have Web-based email, however you should use a server-side language to process form data and have it emailed to you. Common server-side languages that are used include: ASP, PHP, CGI/Perl and JSP.

[Jona]


I was after something that didn't rely on the users having an email address or if they were at a remote location ie a cyber cafe and didn't has access to a program like communicator or outlook express

I kinda have to do this in javascript its for a school project

pyro
06-26-2003, 11:01 PM
If you aren't going to use server side programming, then you have to use a mailto: in the forms action.

yuda
06-26-2003, 11:06 PM
Originally posted by pyro
If you aren't going to use server side programming, then you have to use a mailto: in the forms action.

Ta, I'm just starting out using javascript so I guess the questions will keep on coming