VBscript in PHP page

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default VBscript in PHP page

    I have a routine that I wrote in VB6 that creates a complex SQL string for
    searching my database. I would like to convert this routine to VBscript and
    use it to create the string and then pass the string to PHP to perform the
    query. Can I do this?

    The routine consist of combo boxes for choosing the database fields and
    operators, and text fields for typing info to test against. Would this VB6
    code differ much from the VBscript code?

    erickia Guest

  2. Similar Questions and Discussions

    1. ASP detail page to Word Document (ASP/VBScript)
      Hi there. I have a dynamic details page that I want to output into a word document. Can anyone pint me in the right direction for some sample...
    2. Pass vbscript array contents to page
      Hi I have a page with a form and a results page. My form: <form name = "theform" action="results.asp" method="post"> Part of the form is 5...
    3. open page in new window, VBscript + ASP
      Gazing into my crystal ball I observed "Raphael Gluck" <iwish i could tell you @alas blame the spammers> writing in...
    4. Error on loading ASP page with VBScript
      When I used IE 6.0 to view the ASP page on Window 2000 server PC, I encountered the error message: "Expected end of statement". The ASP page...
    5. Dynamic content within page? Changing session variables with VBScript?
      > A URL would be helpful. It's not on a public server... This is for an intranet application. This would work fine, except that eventually...
  3. #2

    Default Re: VBscript in PHP page

    I don't think you'll be able to do it on the same page. The page can only
    be parsed by one script engine at a time, and that's governed by the
    extension of the file being used (.asp/.php). You might be able to do some
    preprocessing on an ASP page, then forward the results to a PHP page for
    further action, presuming, of course, that your server supports both server
    models.

    Best regards,
    Chris


    Chris In Madison Guest

  4. #3

    Default Re: VBscript in PHP page

    That wouldn't be a problem. One page for inputing the request and another for
    displaying the results, would be fine. I phrased the question wrong. I should
    have said on the same "site" and rather than the same "page."

    erickia Guest

  5. #4

    Default Re: VBscript in PHP page

    If that's the case, then I don't see a problem with it, technically. The
    only problem now is getting Dreamweaver to deal with it.

    When you create a site definition, it pretty much sets up all the menus and
    what not for that particular server model. So, if your site defiinition is
    for ASP, then I don't think your PHP server behaviors will be available. I
    might be wrong on that, though. MX2004 adds a little more flexibility in
    that regard than previous versions. At one point you had to maintain two
    site definitions, one for PHP, one for ASP, both pointing to the same
    directory. Not sure if that's still the case. Might be worth checking :-)

    Best regards,
    Chris


    Chris In Madison Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139