Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Sep 2007
    Posts
    137
    Thanks
    1
    Thanked 0 Times in 0 Posts

    question about using asp in a php file

    i am using asp in a php file with the following syntax =

    <%
    Response.Write( "<br> This is a text from asp tag")
    %>

    is this a correct way of writing asp. also as the file is manily php i
    have used <?php and ?> where ever the code is related to php

    please advice.

    Also what i am trying to do is passing a variable from a asp page and
    in the form action of the previous asp page i am calling a php file by
    passing a variable name and value and retrieving the variable value
    using asp. Is this a right way to do. I do not have a choice of using
    php in the form page as the server where the page resides does not
    support php.

  • #2
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,169
    Thanks
    19
    Thanked 65 Times in 64 Posts
    why can't you just use php in the php file?

    AFAIK there is no way to mix and match asp and php in the same file.


  •  

    Posting Permissions

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