Code Bank
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingCode Bank

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 27th, 2004, 02:59 PM
Francot Francot is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 3 Francot User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy newb needs ASP help

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?

Reply With Quote
  #2  
Old May 28th, 2004, 06:28 AM
skpshah skpshah is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 63 skpshah User rank is Private First Class (20 - 50 Reputation Level)skpshah User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 h 7 m 32 sec
Reputation Power: 5
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.

Reply With Quote
  #3  
Old May 28th, 2004, 08:00 AM
beercraft_asp's Avatar
beercraft_asp beercraft_asp is offline
Spell Breaker
ASP Free Novice (500 - 999 posts)
 
Join Date: May 2004
Posts: 990 beercraft_asp User rank is Lance Corporal (50 - 100 Reputation Level)beercraft_asp User rank is Lance Corporal (50 - 100 Reputation Level)beercraft_asp User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 8 h 33 m 42 sec
Reputation Power: 5
Send a message via AIM to beercraft_asp Send a message via MSN to beercraft_asp
Arrow

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

Reply With Quote
  #4  
Old May 28th, 2004, 03:27 PM
Francot Francot is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 3 Francot User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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



Reply With Quote
  #5  
Old May 29th, 2004, 02:25 PM
Tiny8bmguy Tiny8bmguy is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 2 Tiny8bmguy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Talking I will write code 4 free

Homies i will write tho code for u for free tell me wat u need
Tiny8bmguy is my YIM thing!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!

Reply With Quote
  #6  
Old May 29th, 2004, 03:05 PM
Francot Francot is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 3 Francot User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Red face

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.

Reply With Quote
  #7  
Old June 12th, 2004, 09:34 PM
Tiny8bmguy Tiny8bmguy is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 2 Tiny8bmguy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Wink im me

Im Me At Tiny8bmguy For Yahoo And Wlbasketballdude For Aim And Checkercueball For Msn!!!!!!!!!!!!!!!!!!!!!!!!! :d

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingCode Bank > newb needs ASP help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway