hi everyone,
i need help in writing a code to perform a mailing action of values stored in 2 variables . the mail function narmally has
mail( to, " sub", from) but i need to send values from 2 variables selected dynamically from the previouspage and mailed using the mail function written in this page.
now my question is can mail function take variable values more than one and how to declare the variables in this page connecting to the form they are in.I hope u understand what i am trying to tell.
you can understand what i am talking if u see the page i designed.i have written the mail action in asp. I dont know how to do it in php as the server does not support asp.
http://www.frictioncenter.com/Pages/date_picker1.php
AND PLZ MAIL ME AT
[email protected]
CAN SOMEBODY PLEASE WRITE THE CODE FOR THE MAIL PAGE WITH THE SAME VARIABLE NAMES I USED IN ASP.
THE ASP CODE FOR THE MAILING PAGE IS AS BELOW:
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<BODY>
<P> </P>
<form id=form1 name=form1>
<%
dim comDate
dim comName
comDate = Request.Form("hdndate")
comName = Request.Form("hdnComName")
'Response.Write (comName)
'Response.End
Set MyMail = Server.CreateObject("CDONTS.NewMail")
MyMail.From = "
[email protected]"
MyMail.To = "
[email protected]"
MyMail.Subject = "hi Admin"
MyMail.Body = comName & " is registered by xyz on " & comDate
MyMail.Send
Set MyMail = Nothing
Response.Write "You have registered succesfully. Please contact Admin"
%>
</form>
</BODY>
</HTML>