variables from php to asp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • spirit
    New Member
    • Dec 2006
    • 6

    variables from php to asp

    Hi,

    Can we pass a variable from PHP page to ASP page??
    If YES, then how to do that??

    Plz guide me.

    Thanks,
  • ak1dnar
    Recognized Expert Top Contributor
    • Jan 2007
    • 1584

    #2
    Create a HTML FORM in the php page and assign your variable to a form element (Ex: hidden field) and use the POST method to Pass it to the Destination ASP page using the action element of the form.
    Ex: http://www.aspdomain.c om/target.asp

    So from the ASP page you can get the POSTed data from the php.

    Or else try php curl

    -ajaxrand(Php-Forum)

    Comment

    • jhardman
      Recognized Expert Specialist
      • Jan 2007
      • 3405

      #3
      Originally posted by ajaxrand
      Create a HTML FORM in the php page and assign your variable to a form element (Ex: hidden field) and use the POST method to Pass it to the Destination ASP page using the action element of the form.
      Ex: http://www.aspdomain.c om/target.asp

      So from the ASP page you can get the POSTed data from the php.

      Or else try php curl

      -ajaxrand(Php-Forum)
      I agree, post data would be a good way to do it. You could also put the data into a cookie or a querystring (http://mySite.com/howTo.asp?actio n=update&title= No+time+for+los ers+cause+we+ar e+the+champions )

      Jared

      Comment

      • ak1dnar
        Recognized Expert Top Contributor
        • Jan 2007
        • 1584

        #4
        Originally posted by jhardman
        (http://mySite.com/howTo.asp?actio n=update&title= No+time+for+los ers+cause+we+ar e+the+champions )
        Jared
        But Don't use the query string for Storing sensitive data.

        Comment

        Working...