[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 217
  • Last Modified:

Regarding HTML code.

i have following html code...

<HTML>
<HEAD> </HEAD>
<BODY>
<CENTER> <FONT FACE="Arial">
<TABLE BORDER="1">
<TR>
<TD>
<CENTER>
<FONT FACE="Arial"> <B>Example of a Registration Form</B></FONT>
</CENTER>

<P> <FONT FACE="Arial">
<FORM  METHOD="POST" ACTION="transform.cgi">
<P> <FONT FACE="Arial"> Workshop and Panel Registration</FONT> </P>

<BLOCKQUOTE>

<FONT FACE="Arial">
<INPUT TYPE=checkbox NAME=box1 VALUE=checked>
Keynote Address<BR>
<INPUT TYPE=checkbox NAME=box2 VALUE=checked>
Panel One<BR>
<INPUT TYPE=checkbox NAME=box3 VALUE=checked>
Panel Two</FONT>

</BLOCKQUOTE>

<P> <FONT FACE="Arial"> Gender</FONT> </P>

<BLOCKQUOTE>

<FONT FACE="Arial">
<INPUT TYPE=radio NAME=gender VALUE=Male>
Male<BR>
<INPUT TYPE=radio NAME=gender VALUE=Female>
Female</FONT>
</BLOCKQUOTE>

<P> <FONT FACE="Arial"> <TABLE BORDER=0>
<TR>
<TD>
<P> <FONT FACE="Arial"> Name:</FONT> </P>
</TD>
<TD>
<P> <FONT FACE="Arial">
<INPUT TYPE=text NAME=name VALUE="" SIZE=30> </FONT> </P>
</TD>
</TR>
<TR>
<TD>
<P> <FONT FACE="Arial"> Email:</FONT> </P>
</TD>
<TD>
<P> <FONT FACE="Arial">
<INPUT TYPE=text NAME=email VALUE="" SIZE=30 MAXLENGTH=20> </FONT> </P>
</TD>
</TR>
<TR>
<TD>
<P> <FONT FACE="Arial"> Address:</FONT> </P>
</TD>
<TD>
<P> <FONT FACE="Arial"> <INPUT TYPE=text NAME=address VALUE="" SIZE=30> </FONT> </P>
</TD>
</TR>
<TR>
<TD>
<P> <FONT FACE="Arial"> City:</FONT> </P>
</TD>
<TD>
<P> <FONT FACE="Arial"> <INPUT TYPE=text NAME=city VALUE="" SIZE=30> </FONT> </P>
</TD>
</TR>
<TR>
<TD>
<P> <FONT FACE="Arial"> State/Province:</FONT> </P>
</TD>
<TD>
<P> <FONT FACE="Arial"> <INPUT TYPE=text NAME=state VALUE="" SIZE=30> </FONT> </P>
</TD>
</TR>
<TR>
<TD>
<P> <FONT FACE="Arial"> Postal/Zip Code:
</FONT> </P>
</TD>
<TD>
<P> <FONT FACE="Arial"> <INPUT TYPE=text NAME=zip VALUE="" SIZE=30> </FONT> </P>
</TD>
</TR>
<TR>
<TD>
<P> <FONT FACE="Arial"> Country:</FONT> </P>
</TD>
<TD>
<P> <FONT FACE="Arial"> <INPUT TYPE=text NAME=country VALUE="" SIZE=30> </FONT> </P>
</TD>
</TR>
</TABLE>
</FONT> </P>

<CENTER> <FONT FACE="Arial">
<INPUT TYPE=submit NAME=Submit VALUE="Submit Form"> </FONT> </CENTER>
</FORM> </FONT> </P>
</TD>
</TR>
</TABLE>
</FONT> </CENTER>
</body>
</html>

It is a coding of a form asking for basic details
now when i click on submit button it should mail to particular email address specified.
what should be the coding for that ?
0
pnpking
Asked:
pnpking
1 Solution
 
hieloCommented:
When the data is submitted it will be sent to transform.cgi:
<FORM  METHOD="POST" ACTION="transform.cgi">

So, in transform.cgi you process the data sent to it and then email it to whomever. It is not clear what server side scripting technology you have available to send the email, so depending on what you have, you may want to look at these:
Perl:
http://www.perlfect.com/articles/sendmail.shtml

PHP:
http://us.php.net/function.mail

ASP:
http://w3schools.com/asp/asp_send_email.asp
0
 
Computer101Commented:
Forced accept.

Computer101
EE Admin
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now