Best Credit Cards - Bad Credit Mortgages - Home Loan - Loans - Homeowner Loans

PDA

View Full Version : Basic ASP Form Please


TwisterMc
Apr 12th 2005, 3:21 pm
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?

J.D.
Apr 12th 2005, 4:28 pm
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.

TwisterMc
Apr 12th 2005, 5:18 pm
Umm COM? I have no idea, but thanks for the link.

J.D.
Apr 12th 2005, 5:28 pm
Umm COM? I have no idea, but thanks for the link.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.

TwisterMc
Apr 13th 2005, 6:19 am
Ok, i think you've lost me.

J.D.
Apr 13th 2005, 8:05 am
Ok, i think you've lost me.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.

TwisterMc
Apr 13th 2005, 8:39 am
Great, thanks. :)

paulhiles
Apr 15th 2005, 1:08 pm
There's a well documented ASP FormMail (http://www.brainjar.com/asp/formmail/default.asp) script on brainjar.com, if you're new to ASP it may help to have a step by step tutorial! ;)

Paul

mopacfan
Apr 15th 2005, 1:21 pm
Send me a pm and let me know what you need to do. I can write one for you pretty easily.

TwisterMc
Apr 15th 2005, 2:20 pm
Thanks for the link and thanks for the offer mopacfan. I'll keep you in mind if i have issues.

lovethecoast
Apr 30th 2005, 7:43 pm
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).

TwisterMc
May 2nd 2005, 11:21 am
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.