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 8 of 8
  1. #1
    New Coder
    Join Date
    Aug 2007
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts

    VB code with a php page

    Hi is there any way i can include VB code in my php page i want to make a simple form where you purchase something and it costs you points (which is held in a table) i dont any security on these fields or any thing like that. i know vb better than i do php so wondered if it was possible, if it is what would my tags be to open and close the vb code ?

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,500
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    I'm not sure of the answer to your question, but why can't you
    just use PHP? The points can be held in a session variable and accessed
    anytime, until they close their browser.

  • #3
    New Coder
    Join Date
    Aug 2007
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yer i know but i know vb better than php lol i was just looking for an easy way out, ill need to add the points to my database and have the user update the points because they need to be there everytime the user logs in and not just the once. If there isnt a way of doing then ill just do it in php just got alot to learn in php. i ll have a look about and see what i can find out about using vb code in a php page im curious now lol

  • #4
    New Coder
    Join Date
    Aug 2007
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What about <script type=VBscript> ? or wouldnt the <code> do ?

  • #5
    New Coder
    Join Date
    Aug 2007
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts
    well i dont think <code></code> can contain vb.net code lol having no luck there

  • #6
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,500
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    It looks like it might have something to do with XML.

    PHP can be used to generate XML pages.

    http://www.google.com/search?q=vb.ne...hp&btnG=Search

  • #7
    New Coder
    Join Date
    Aug 2007
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It looks like it, oh well ill stick to php for my points system. I was just wondering because on Frontpage theres an option for writting in the VB script editor, but thats probably more likely to make it easier to call the vb script using php.
    Thanks for your help

  • #8
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,500
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    If you learn some PHP and some simple MySQL, you would really have
    a powerful system for not only accomplishing your task, but making it
    much better and more flexible. It's all server-side, so there are no
    client dependencies, no browser issues, no platform issues. A Mac user
    could use your scripts just as well as a PC user.


  •  

    Posting Permissions

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