email a simple enquiry form [Question]



ASP.NET, Classic ASP, PHP, Ruby, Python, JSP
i_heart_beer

PostThu Mar 01, 2012 10:28 am


Rank: Grasshopper

Posts: 2
Joined: Thu Mar 01, 2012 10:25 am



hello everyone,

I've created a basic enquiry form, but now I'm a bit stuck.

I have an asp page that when the form will submit to. What or how do I get the values from the form and then send them to an specified email address?

any help would be much appreciated!
dereckT

PostThu Mar 01, 2012 10:34 am


User avatar
Rank: Junior

Posts: 92
Joined: Tue Feb 28, 2012 1:40 pm



i_heart_beer wrote:I've created a basic enquiry form, but now I'm a bit stuck.


hi i_heart_beer,

sorry, could you please post what you have done so far?

cheers!
i_heart_beer

PostThu Mar 01, 2012 11:04 am


Rank: Grasshopper

Posts: 2
Joined: Thu Mar 01, 2012 10:25 am



hello dereckT

I'm really sorry!

I've posted it now:

<!DOCTYPE html>
<html>
   <head>
      <title></title>
   </head>
   <body>
      <form method="POST" action="thanks.asp">
      
         <table>
               <tr>
                  <td>
                     Name:
                  </td>
                  <td>
                     <input type="text" name="fname" />
                  </td>
               </tr>
               <tr>
                  <td>
                     Email:
                  </td>
                  <td>
                     <input type="text" name="email" />
                  </td>
               </tr>
               <tr>
                  <td>
                     Message:
                  </td>
                  <td>
                     <textarea name="message" cols=40 rows=4></textarea>
                  </td>
               </tr>
               <tr>
                  <td colspan="2">
                     <input type="submit" value="Submit" />
                  </td>
               </tr>
         </table>      
      </form>
   </body>
</html>
alvinGee

PostTue Mar 13, 2012 10:36 am


User avatar
Rank: Helper

Posts: 19
Joined: Wed Feb 29, 2012 11:13 am



hey i_hear_beer

did you manage to solve it? just wondering, because if you want I've got some samples that might be appropriate?
kreso93

PostWed Mar 28, 2012 8:13 pm


Rank: Advisor

Posts: 46
Joined: Sun Mar 25, 2012 2:32 pm



You can easily do this with PHP, also, try Googling for "contact form builder". There are sites that do this for you, all you have to do is copy paste. You can also examine the code they give you.
encryptedbytes

PostWed Mar 28, 2012 10:02 pm


Rank: Advisor

Posts: 41
Joined: Sun Mar 25, 2012 7:22 pm
Location: Wisconsin, USA



kreso93 wrote:You can easily do this with PHP, also, try Googling for "contact form builder". There are sites that do this for you, all you have to do is copy paste. You can also examine the code they give you.

If you use a generated form, I highly recommend looking over the generated code and getting familiar how it works. Using tools to make things easier and less time consuming is great, but not at the expense of understanding how it works. You know the old saying (from the bible, I think) that if you give a man a fish, he eats for a day, but teach a man to fish and he eats for a lifetime.
6 posts • Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest