need a small script help

Discussion in 'Programming' started by chucky00, Sep 6, 2008.

  1. #1
    hello

    i need a small script to do this:
    people enter their url in a field and when they press the check button they will be taken to w3c site to see if their site code validates.
    http://validator.w3.org/check?uri=referer
    PHP:
    thanks
     
    chucky00, Sep 6, 2008 IP
  2. nepasolutions

    nepasolutions Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you should use form and post the file to w3.org validation page.
     
    nepasolutions, Sep 6, 2008 IP
  3. Vooler

    Vooler Well-Known Member

    Messages:
    1,146
    Likes Received:
    64
    Best Answers:
    4
    Trophy Points:
    150
    #3
    It is simple

    
    Enter site url <input type="text" id="ref">
    <input type="button" value="Check"
      onclick="javascript:
          location.replace('http://validator.w3.org/check?uri='+document.getElementById('ref').value);
      "
    >
    
    Code (markup):
    regards
     
    Vooler, Sep 7, 2008 IP
  4. paulo_aiello

    paulo_aiello Active Member

    Messages:
    117
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #4
    contact me through IM, i may be able to help you
     
    paulo_aiello, Sep 7, 2008 IP