Jump to content

Help making a regester form


Guest lilmikec

Recommended Posts

Guest lilmikec

Hello i need help im trying to make a register page where you fill in text areas and then when you press submite it submites all the info you just enterd to a e-mail adress but i don't know how to make it so it will submit all that info to the e-mail adress

Link to comment
Share on other sites

hi, first create the html form and give the values for example if u have suppose three things likename : email Id : comments : or u can add many things now give the Id's to each field ex : name="fname", emai id="email", comments="comments"this all shoudl b in html or asp no probs.. then create one asp file with this codeDim name, Title, company, address, city, state1, zip, country, phone, fax, email, comments, NewMailObjname=request.form("name")email=request.form("email")comments=request.form("comments")Set NewMailObj=Server.CreateObject("CDONTS.NewMail")NewMailObj.From = "name@domain.com"NewMailObj.To = "destination@domain.com"NewMailObj.Subject = "New message sent.." NewMailObj.Body = "the sender's name is : " & name & _"<br><br>the title is : " & email & _"<br><br>the company is : " & comments & _NewMailObj.BodyFormat = 0 NewMailObj.MailFormat = 0 NewMailObj.SendSet NewMailObj = nothingResponse.write ""%>asp file finish here....hope this is simple.. :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...