# I need to use ASP to create a guestbook and contact form?

**URL:** <https://forum.kirupa.com/t/i-need-to-use-asp-to-create-a-guestbook-and-contact-form/101980>\
**Category:** Uncategorized\
**Created:** [February 18, 2004, 3:21pm UTC](https://forum.kirupa.com/t/i-need-to-use-asp-to-create-a-guestbook-and-contact-form/101980 "2004-02-18T15:21:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![brintonwhite](https://avatars.discourse-cdn.com/v4/letter/b/cdc98d/32.png) [@brintonwhite](https://forum.kirupa.com/u/brintonwhite)\
**Post date:** [February 18, 2004, 3:21pm UTC](https://forum.kirupa.com/t/i-need-to-use-asp-to-create-a-guestbook-and-contact-form/101980/1 "2004-02-18T15:21:14Z")

</div>

I am in a real pickle here. I created a guestbook and contact page using php. Everything worked fine on my server but when my client has loaded all the stuff onto his server, we find out that php is not supported. :puzzled:

The guy at his server says that if I could make the guestbook and contact form using ASP instead we will be in business.

I know come to you people in hope of being shown a tutorial, or perhaps if you have any old files that you don’t need, that would also be fantastic!! If you could walk me through this little problem that would be wonderful.

I presume that asp is just a file that is sent in to the server along with all the other stuff, just like a php file?

I also asume I will be able to use ASP with a flash site?

Oh, any help would be wonderful. Please help.  
The site I am having the problem with is:

> **[Spreesy is Joining the CommentSold Family!](https://go.commentsold.com/spreesy-joins-commentsold)**
>
> We are thrilled to announce that CommentSold has acquired Spreesy. Retailers using the Spreesy platform will now have the option to switch to CommentSold and gain access to automated comment selling and a multitude of other features that help...

Thank you

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 18, 2004, 5:31pm UTC](https://forum.kirupa.com/t/i-need-to-use-asp-to-create-a-guestbook-and-contact-form/101980/2 "2004-02-18T17:31:06Z")

</div>

this link show how to insert data into a databse from flash. it is the same when using html as far as the ASP in concerned.  
[http://www.kirupa.com/developer/actionscript/forms\_database.htm](http://www.kirupa.com/developer/actionscript/forms_database.htm)

i don’t have a good guest book on my pc, run a search or 2 for that

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 18, 2004, 5:38pm UTC](https://forum.kirupa.com/t/i-need-to-use-asp-to-create-a-guestbook-and-contact-form/101980/3 "2004-02-18T17:38:26Z")

</div>

Digitalosophy,

Thank you for your reply. Unfortuanately, i don’t have access to a database. I thought it would be as simple as doing it with PHP but it seems I am wrong. Not really sure what to do now ☹

I suppose they can change server if ASP is too complex to use.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 18, 2004, 5:49pm UTC](https://forum.kirupa.com/t/i-need-to-use-asp-to-create-a-guestbook-and-contact-form/101980/4 "2004-02-18T17:49:08Z")

</div>

well what would you like to do? you can send the info to an email using CDONTS.

here is the ASP code to do so

```php

<% @language="VBSCRIPT" %>

<%

    Dim myMail, myBody
        
        myBody = "Name: "& request.form("name") & vbcrlf
        myBody = myBody & "Email: "& request.form("email") & vbcrlf
        myBody = myBody & "Message: "& vbcrlf & request.form("message")

    Set myMail = CreateObject("CDONTS.NewMail")

    myMail.BodyFormat=1
    myMail.MailFormat=1
    myMail.From=request.form("email")
    myMail.To=request.form("email")
    myMail.Subject="Flash MX Basic Email"
    myMail.Body=myBody
    myMail.Send

    set myMail=nothing

%>

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 18, 2004, 6:08pm UTC](https://forum.kirupa.com/t/i-need-to-use-asp-to-create-a-guestbook-and-contact-form/101980/5 "2004-02-18T18:08:49Z")

</div>

Digitalosophy,

Thank you. I would indeed like to just use the form to send all the info to an email address. I will paste your code into notepad but what should I call this file and should I use the asp file extension?

I will then make my form in flash but I have to admit I’m not sure how I will do this, I’ll probably just keep it the same as I did when I made the php version but no doubt some of the elements such as the variables will have to be changed. Might you consider looking at the FLA when I have finished it?

Once again, thank you for your time, much appreciated - I admit that ASP, PHP etc is not something that I have had time to learn - too busy learning flash etc - not enoough hours in the day.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 19, 2004, 10:31pm UTC](https://forum.kirupa.com/t/i-need-to-use-asp-to-create-a-guestbook-and-contact-form/101980/6 "2004-02-19T22:31:29Z")

</div>

Digitalosophy,

This is what I think I should do:  
In flash:

Create the input text fields and give variable names of name, email, and message.

I would not, however know what actionscript to put into Flash (this is where I am stuck.)

Also, When I paste the code you have supplied, what should i call the asp file? newmail.asp

I realise you must be busy but I am now at the stage where I must inform the client whether or not to get a new server that supports php or not.

Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 19, 2004, 10:37pm UTC](https://forum.kirupa.com/t/i-need-to-use-asp-to-create-a-guestbook-and-contact-form/101980/7 "2004-02-19T22:37:28Z")

</div>

hmm ok you are correct with how to set up the form. basically you need an event(submit button) to send the variables to your asp page. name the asp page whatever you would like, just make sure flash points to that page

```auto

on(press){
loadVariableNum("aspmail.asp",0,"post");
}

```

do a search to learn more about flash forms. thee are milions of examples, and source files on the forums and in the tutorial sections.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 19, 2004, 10:44pm UTC](https://forum.kirupa.com/t/i-need-to-use-asp-to-create-a-guestbook-and-contact-form/101980/8 "2004-02-19T22:44:07Z")

</div>

Thank you.
