943,739 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 1528
  • ASP RSS
Dec 7th, 2006
0

I'm new with ASP, so I would love to get some help here.

Expand Post »
Hello.
I want to make forms in ASP (login and contact forms)

Let's start with the contact page: (where the form is)
(is this right, and am I gonna call it for example; contact.html or contact.asp?

html Syntax (Toggle Plain Text)
  1. <html>
  2. <head>
  3. <title>Hope you can help me...</title>
  4. </head>
  5.  
  6. <body>
  7. <form action="thanks.asp">
  8. Name: <input type="text">
  9. E-Mail: <input type="text">
  10. <input type="submit" value="Submit">
  11. </form>
  12. </body>
  13. </html>

And what I wonder now, is what am I gonna have in the thanks.asp file. Anyone who knows?

And if you don't mind, can you help me with a login form too?




And a final question.
- Do I need anything to make ASP? (If I do, where can I get it)






Anders
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Andy-Pandy is offline Offline
14 posts
since Oct 2006
Dec 20th, 2006
0

Re: I'm new with ASP, so I would love to get some help here.

HI Anders.

To run ASP you need IIS4, IIS5, IIS6 or .NOT framework. IIS comes with MIcrosoft windows 200 and XP pro etc...

Here is some code to show some basic data capture, simple copy and paste into an .asp page

asp Syntax (Toggle Plain Text)
  1. <%
  2. ' check to see if the form has been submitted
  3. if len(request.form("go")) then
  4. ' write out results
  5. response.write "<p>You submitted the following details</p>"
  6. response.write request.form("name") & "<br/>"
  7.  
  8. response.write request.form("email")
  9.  
  10.  
  11. end if
  12. %>
  13. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[url]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd[/url]">
  14. <html xmlns="[url]http://www.w3.org/1999/xhtml[/url]">
  15. <head>
  16. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  17. <title>Untitled Document</title>
  18. </head>
  19. <body>
  20. <form id="form1" name="form1" method="post" action="">
  21. <input type="hidden" name="go" value="yes" />
  22. <label>name
  23. <input type="text" name="name" />
  24. </label>
  25. <p>
  26. <label>email
  27. <input type="text" name="email" />
  28. </label>
  29. </p>
  30. <p>
  31. <label>
  32. <input type="submit" name="Submit" value="Submit" />
  33. </label>
  34. </p>
  35. </form>
  36. </body>
  37. </html>
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kudosvisions is offline Offline
4 posts
since Dec 2006
Dec 20th, 2006
0

Re: I'm new with ASP, so I would love to get some help here.

apologies for my last quote, Didnt come out as I intended

HI Anders.

To run ASP you need IIS4, IIS5, IIS6 or .NET framework. IIS comes with Microsoft windows 2000 and XP pro etc...

Here is some code to show some basic data capture, simple copy and paste into your .asp page and run it

asp Syntax (Toggle Plain Text)
  1. <%
  2. ' check to see if the form has been submitted
  3. if len(request.form("go")) then
  4. ' write out results
  5. response.write "<p>You submitted the following details</p>"
  6. response.write request.form("name") & "<br/>"
  7.  
  8. response.write request.form("email")
  9.  
  10.  
  11. end if
  12. %>
  13. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[url]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd[/url]">
  14. <html xmlns="[url]http://www.w3.org/1999/xhtml[/url]">
  15. <head>
  16. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  17. <title>Untitled Document</title>
  18. </head>
  19. <body>
  20. <form id="form1" name="form1" method="post" action="">
  21. <input type="hidden" name="go" value="yes" />
  22. <label>name
  23. <input type="text" name="name" />
  24. </label>
  25. <p>
  26. <label>email
  27. <input type="text" name="email" />
  28. </label>
  29. </p>
  30. <p>
  31. <label>
  32. <input type="submit" name="Submit" value="Submit" />
  33. </label>
  34. </p>
  35. </form>
  36. </body>
  37. </html>
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kudosvisions is offline Offline
4 posts
since Dec 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: Logon system and modifing
Next Thread in ASP Forum Timeline: Turn text into clickable links





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC