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? Thanks Code: <p><h1><b> <form method=post action="../php/process.php"> <p><b> <input type=text name="name" size=30> Name <input type=text name=email size=30> e-mail address</b></p> <p><b>comments:</b> <br> <textarea name=feedback rows=5 cols=40> </textarea> <br> <input type=submit value=Send name=submit> </form> </p></h1>
At this point to keep it simple. I have not been using an array Code: <? $name=trim($name); $email=trim($email); $feedback=trim($feedback); if (!$name || !$email || !$feedback) { echo "You have not entered all the required details ....... (Name, Email and feedback)<br>" ."Please go back and try again. "; exit; } . . . ?>
The way that you access the varables is deprecated and disabled in current php versions. try: $name=trim($_REQUEST['name']); $email=trim($_REQUEST['email']); $feedback=trim($_REQUEST['feedback']);
Wow. Thanks Till Works so well I can no longer need to use: Code: open_short_tag=on register_globals=on