A Flash Developer Resource Site

Results 1 to 12 of 12

Thread: PHP to ASP

  1. #1
    The G5 SP N_R_D's Avatar
    Join Date
    Apr 2004
    Posts
    1,118

    PHP to ASP

    is there a way to use ASP to accomplish the same task that PHP does with flash for the contact form.

    I want to use

    loadVariablesNum

    to post variables to asp?
    or something like it.

    I have the site I am working on on the same network as the people who see it, but I need to get it to send a form through a contact area. Any ideas?

  2. #2
    FK'n Elitist Super Mod EVPohovich's Avatar
    Join Date
    Dec 2000
    Location
    About to BAN you!
    Posts
    3,023
    I haven't tried it, but I thought PHP could run on an ASP server.


    Anyone correct me if I am wrong.....please.

  3. #3

  4. #4

  5. #5
    Registered User
    Join Date
    Feb 2001
    Posts
    13,041
    Hi,

    there have been a couple of ASP mail scripts in the past - just try the search function.
    One thing you will notice: where php simply uses mail() to send mail, there are a few different mailers in asp world which require different scripting

    Musicman

  6. #6
    The G5 SP N_R_D's Avatar
    Join Date
    Apr 2004
    Posts
    1,118
    So it is possible.......cool. I will take a look and let you know. THanks !

  7. #7
    The G5 SP N_R_D's Avatar
    Join Date
    Apr 2004
    Posts
    1,118
    One last thing......

    If the page with the ASPis on the same network that the viewer is on, will PHP or ASP work mail work?


    It is a intranet site, so you go through a webbrowser to get there, but it is still on the same network the CPU is.

    Will that wouk? WIth PHP or ASP?

    Or does it neeed to be on an actual server?

  8. #8
    Senior Member
    Join Date
    Jul 2000
    Location
    Sydney, Australia
    Posts
    486
    variables: http://www.w3schools.com/asp/asp_variables.asp

    forms: http://www.w3schools.com/asp/asp_inputforms.asp

    mail: http://www.w3schools.com/asp/asp_send_email.asp

    should be about all you need, i learned basic asp today in about 10 minutes, if you know php it's really only a matter of changing syntax for the most part.

  9. #9
    Senior Member
    Join Date
    Sep 2003
    Posts
    974
    you can send email with asp and flash..

    hehehe.. i am no actionscript writer.. but i think.. i just think, it may be this geturl funciton.. where you can put the url or address of a page in..
    so, you basically ask for the mailing script on asp, and add the variables on the flash swf as query strings..
    Flash MX + ASP + WinXP Pro
    Now Learning PHP & MySQL

  10. #10
    The G5 SP N_R_D's Avatar
    Join Date
    Apr 2004
    Posts
    1,118
    BEAUTIFUL !!!!


    I will be back if it doesnt work

  11. #11
    The G5 SP N_R_D's Avatar
    Join Date
    Apr 2004
    Posts
    1,118
    Ok .....

    I have

    [asp]

    <html>
    <body>

    <%
    Set myMail=CreateObject("CDO.Message")
    myMail.Subject="Sending email with CDO"
    myMail.From="mymail@mydomain.com"
    myMail.To="someone@somedomain.com"
    myMail.TextBody="This is a message."
    myMail.Send
    %>

    </body>
    </html>

    [/asp]

    In an ASP file

    and I get an error when I go to the page.....

    how do I call the script. Does it just run?

    Do I need to do more than go to the asp file?

  12. #12
    Senior Member
    Join Date
    Sep 2003
    Posts
    974
    well, you have to call the page from inside the flash file..

    hmm... i think you can use the "loadVariables" function...

    and after you've sent the email from asp... redirect back to the page or to whatever page..

    and also... do check if the server you are working with has CDONTS installed... otherwise, ul have to work with other asp mailing scripts out there..
    Flash MX + ASP + WinXP Pro
    Now Learning PHP & MySQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center