Why survey stop working when I past it to another folder?

Discussion in 'JavaScript' started by Laszlo, Dec 2, 2007.

  1. #1
    Hi. I hired a guy to create a survey and he delivered it and I uploaded it to the root of my directories. It is working fine. But I had to put the same survey on some of my directory folders too but when I tested it and clicked submit button nothing happened. Can you guys help me why this survey is not working if I copy to another folder?

    The link to the working survey is: http://www.1printer-supply.com/survey-inkjetcartridges.htm

    I really appreciate all comments thanks.Laz.:)
     
    Laszlo, Dec 2, 2007 IP
  2. hrcerqueira

    hrcerqueira Peon

    Messages:
    125
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You need to add sendmail.php to your directory folders, or, the easiest and best way, use an absolute path, instead of:

    
    <form name="survey" method="POST" action="sendmail.php" onSubmit="javascript: return Validate()">
    
    Code (markup):
    use

    
    <form name="survey" method="POST" action="/sendmail.php" onSubmit="javascript: return Validate()">
    
    Code (markup):
    cheers
     
    hrcerqueira, Dec 2, 2007 IP
  3. Laszlo

    Laszlo Peon

    Messages:
    90
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you for your help I made it to work. Laz.
     
    Laszlo, Dec 3, 2007 IP
  4. hrcerqueira

    hrcerqueira Peon

    Messages:
    125
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You're welcome.
     
    hrcerqueira, Dec 3, 2007 IP