Problem passing form data NGINX Wheezy

Discussion in 'HOWTO-Related Questions' started by conductive, Oct 8, 2014.

  1. conductive

    conductive Member

    I use a form like this to send contact information. For some reason it will not send data to process2.php and fails where it checks to see if the input data.

    This form used to work with a perfect server Debian/Apache but does not with NGINX. What do I have to do to pass form data on NGINX?


    		<form method=post action="../php/process.php">
              <input type=text name="name" size=30>
              <input type=text name=email size=30>
              e-mail address</b></p>
            <p><b>comments:</b> <br>
              <textarea name=feedback rows=5 cols=40>
              <input type=submit value=Send name=submit>
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    How do you accessthe data in process.php? with $_POST ?
  3. conductive

    conductive Member

    At this point to keep it simple. I have not been using an array

    if (!$name || !$email || !$feedback)
         echo "You have not entered all the required details ....... (Name, Email and feedback)<br>"
              ."Please go back and try again. ";
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The way that you access the varables is deprecated and disabled in current php versions. try:

  5. conductive

    conductive Member

    Thanks Till
    Works so well I can no longer need to use:


Share This Page