Is it possible to do this...

Discussion in 'Directories' started by banless, Dec 5, 2006.

  1. #1
    I want to add image validation on my static html submit pages. Is there a way to do this without using php? I thought I seen a site that had this set up but I can not remember which one it was. Any help would be nice.
     
    banless, Dec 5, 2006 IP
    jaree likes this.
  2. Seiya

    Seiya Peon

    Messages:
    4,666
    Likes Received:
    404
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can do this with Javascript... right? ;)
     
    Seiya, Dec 5, 2006 IP
  3. banless

    banless Peon

    Messages:
    1,745
    Likes Received:
    217
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Not sure, that is what I am trying to find out. Javascript would be great if I can find the code.
     
    banless, Dec 5, 2006 IP
  4. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #4
    try adding this:

    
    AddType application/x-httpd-php .html
    
    Code (markup):
    to your .htaccess file and then you should be able parse php within your html files, afterwhich you can do your image validation stuff via php.

    hope that helps some.

    rob
     
    an0n, Dec 5, 2006 IP
  5. Seiya

    Seiya Peon

    Messages:
    4,666
    Likes Received:
    404
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Which is equivalent to renaming your html file to .php and adding the php there hehe
     
    Seiya, Dec 5, 2006 IP
  6. banless

    banless Peon

    Messages:
    1,745
    Likes Received:
    217
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks alot.
     
    banless, Dec 5, 2006 IP
  7. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #7
    no problem ;)

    I hope this can anyone who needs any similar types of implementations as well.
     
    an0n, Dec 5, 2006 IP
  8. hhheng

    hhheng Banned

    Messages:
    2,633
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You can also put that image together with its script in a php server, and then embed the code into your html page.
     
    hhheng, Dec 5, 2006 IP