View Full Version : question about using asp in a php file

11-27-2007, 10:36 PM
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.

11-28-2007, 11:41 AM
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.