I know PHP but not ASP and now I need to make a contact form and I'm not sure exactly how. I've googled it and all the sites seem to make it look so complex. Is it that complicated? Or does someone know where I can find an easy script or tutorial?
Do you have a COM object that can send over SMTP? If not, check this one out: http://www.aspemail.com/manual_02.html There are other object available, similar to this one. J.D.
It's something you create with a statement like this: <% mailer = Server.CreateObject("Company.Object") %> When you install whatever object you choose to use (check with your hosting company, may be they offer something), you will create this object this way and the rest will be similar to what you'd do in any other environment. J.D.
I was trying to explain what is a COM object. Never mind. Scroll down the page I quoted and you will see an example (yellow-colored). Aside from being full of security holes, this example shows how to use an ASP mailer. Obviously, you need only the part that is within <%%> (just make sure you check the input before using it). The actual HTML will be no different from what you used with your PHP contact form. J.D.
There's a well documented ASP FormMail script on brainjar.com, if you're new to ASP it may help to have a step by step tutorial! Paul
If all you want is a simple form, I think things have gotten overly complicated here. Create the form in html as you normally would. Put it in a .htm page if that's easiest for you and for the form action, reference your asp page. On the asp page, if you're using POST method, use Request.Form("firstName") where firstName is the element of your form. What happens next depends on what you want to do with the data in the form. Do you want to put it in a database or email it to yourself (or both).
Here is an example. Thanks for the help by the way. 1) fill in form: firstName lastName radioButton1 radioButton2 2) hit submit and email it to me 3) if radioButton1 is checked show linka 4) if radioButton2 is checked show linkb How's that sound? Simple I hope.