cgi-bin. Place JavaScript in there?

Discussion in 'Programming' started by pictureboarduk, Feb 17, 2009.

  1. #1
    Hi,

    I have made a contactus form and have wrote some JavaScript to check some fields have been filled out correctly, but for some reason, the code is not working.

    I have the JS in an external file, within a separate JScript folder.

    Should I infact be placing the script inside the cgi-bin folder?

    I've never used that before, so am thinking that this maybe where my mistake is.

    Thanks go to anyone who can help me.

    :)
     
    pictureboarduk, Feb 17, 2009 IP
  2. mrhrk01

    mrhrk01 Well-Known Member

    Messages:
    664
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    145
    #2
    What is your form coded in php i guess ?

    Where have you placed the .js file ?

    Have you correctly referenced the .js so that the form knows where to look and what its looking for ?

    If you need any help just let me know.
     
    mrhrk01, Feb 18, 2009 IP