ASP form-mail

He has: 49 posts

Joined: Jul 2007

Hi,

I have a form already coded into my contact page which has the following fields -

Full Name:

Telephone Number:

Email Address:

Postal Address:

Enquiry:

Because my clients' hosting server does not support PHP (which I would normally use), my only other option is to use ASP which I've never used before.

Can anyone please help me with the ASP script for this form, or point me in the right direction to a template or script. I have searched for a suitable script but couldn't find one which I could easily adapt.

Thanks in advance for any help in this matter.

Gary

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

On the page you POST to, you use Request.Form(name of field). If you use the GET method you use request.querystring(name of field). Those are similar to $_GET[name of field] and $_POST[name of field] in PHP.

You could also POST or GET to a remote page in PHP. Set the action on the form to http://your-php-webhost.com/asp_form.php and handle the data remotely. Redirect the user back to the ASP site once you're done handling the form data. That's the beauty of HTTP, it's universal.

If you still want to use ASP for the whole 9 yards, I don't think ASP comes built in with a mail function like PHP. So you might just want to insert the data into a database.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.