| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi guys ,I thank you in advance for you reply.
I'm new with asp codes .Totally new. I need a html form that sends the input to my email address and to an asp page. I created a html form with the folowing code: <html> <body> <form name="input" action="htmlform.asp" method="get"> Type your first name: <input type="text" name="FirstName" value="First Name" size="20"> <br>Type your last name: <input type="text" name="LastName" value="Last Name" size="20"> <br> <input type="submit" value="Submit"> </form> <p> If you click the "Submit" button, you will send your input to a new page called htmlform.asp </p> </body> </html> I also crate a file called htmlform.asp with no code inside. When I hit the sumit buttom the file name htmlform.asp does not shows the input of the form. Is complety blank. My question is: What is wrong? Does the htmlform.asp needs a scrip to show the results? How can i also recive the input by email? |
|
#2
|
|||
|
|||
|
yes you need to write the script for both showing the result as well as sending email. I cAN SEND YOU A SAMPLE OF IT IF YOU REQUIRE.
|
|
#3
|
||||
|
||||
|
2 ways to display results:
#1 <% response.write "First Name" & request.form("FirstName") &"<br>" response.write "Last Name" & request.form("LastName") %> #2 <% F_name = request.form("FirstName") L_name = request.form("LastName") %> First Name: <%=F_name%><br> Last Name: <%=L_name%> Also try use method="post" in form You can find lost of answers and sample codes here: http://www.aspin.com For email part it's all depends on what Windows Servers you have. If it's Win NT or Win 2000 then here good example: http://www.asp101.com/tips/index.asp?id=53 For Win 2003 try look here http://quadcomm.com/tips/sendCDOSYSmail.asp or aspin.com beercraft |
|
#4
|
|||
|
|||
|
Thank you guys for your help
skpshah can you send me a code sample that sends an email. my email address is JuanDaniel_SAV@hotmail.com ![]() |
|
#5
|
|||
|
|||
Homies i will write tho code for u for free tell me wat u needTiny8bmguy is my YIM thing!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!! |
|
#6
|
|||
|
|||
|
thanks Tiny8bmguy !!!!! for your help
I just need an asp results page that stores the information sent from a html form, and that also sends the results to me by email. The code that beercraft_asp wrote was alot of help but it doent store the reults, it only shows them temporarily until a new set of results arrive. It also doesnt send the results to my email account. I just need a sample code so that I can see what you did, learn it, and then try to modify it. |
|
#7
|
|||
|
|||
|
Im Me At Tiny8bmguy For Yahoo And Wlbasketballdude For Aim And Checkercueball For Msn!!!!!!!!!!!!!!!!!!!!!!!!! :d
|
![]() |
| Viewing: ASP Free Forums > Programming > Code Bank > newb needs ASP help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|