PHP script to submit check variables from ASP form

Discussion in 'Programming' started by Anveto, Aug 17, 2011.

  1. #1
    I have a php script that needs to check license codes from a database which exists on a ASP site. I was wondering how I can have a script submit the form and check if there is a result or no results, either the license matches or it doesn't?

    This is the site I want to check:
    http://bits.swebowl.se/MaintainLicences.aspx
    Code (markup):
    Got any ideas on tutorials or examples on how to do this?

    How can I run a query on the ASP site using php?

    Thanks!
     
    Anveto, Aug 17, 2011 IP
  2. ssmm987

    ssmm987 Member

    Messages:
    180
    Likes Received:
    4
    Best Answers:
    3
    Trophy Points:
    43
    #2
    Does your host support php?
     
    ssmm987, Aug 18, 2011 IP
  3. Anveto

    Anveto Well-Known Member

    Messages:
    697
    Likes Received:
    40
    Best Answers:
    19
    Trophy Points:
    195
    #3
    yes they support it?
     
    Anveto, Aug 18, 2011 IP
  4. ssmm987

    ssmm987 Member

    Messages:
    180
    Likes Received:
    4
    Best Answers:
    3
    Trophy Points:
    43
    #4
    I was talking about your webhost.

    If it supports, do you have the validation script already, or do you still have to make it?
     
    ssmm987, Aug 18, 2011 IP
  5. Anveto

    Anveto Well-Known Member

    Messages:
    697
    Likes Received:
    40
    Best Answers:
    19
    Trophy Points:
    195
    #5
    Yes my web host does support it, no I dont have the script written yet, it would be fairly simple though, a user fills out a form with their license number and hits submit, then there needs to be a check if the license is in the database, if it isn't in the database on the asp site my script would show an error, if it is on the site my script would add the new user to my sites database.

    I was trying to figure out how to submit the asp form so that I could parse the results? I can write the rest of the script, I just dont know how to make the asp site show the results for my php script
     
    Anveto, Aug 18, 2011 IP
  6. Anveto

    Anveto Well-Known Member

    Messages:
    697
    Likes Received:
    40
    Best Answers:
    19
    Trophy Points:
    195
    #6
    Anyone have any idea on how to do this, submit and then parse the results of an asp form using a php script?
     
    Anveto, Aug 20, 2011 IP
  7. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #7
    You don't "submit the asp form", you call that site's API, giving it the license information and it gives you back the yes/no response. You don't use a site to "submit" on another site, or you'll quickly find your site blocked from that site.

    Since I don't read (or understand) Swedish, I can't tell you whether there's any API information there, or whom to contact to ask.
     
    Rukbat, Aug 24, 2011 IP